Fixed comments and indenting style from r68491.
[lhc/web/wiklou.git] / includes / Pager.php
index 68acc51..b6956e5 100644 (file)
@@ -164,7 +164,7 @@ abstract class IndexPager implements Pager {
        }
 
        /**
-        * Return the result wrapper.
+        * @return ResultWrapper The result wrapper.
         */
        function getResult() {
                return $this->mResult;
@@ -195,7 +195,8 @@ abstract class IndexPager implements Pager {
                $numRows = $res->numRows();
                if ( $numRows ) {
                        # Remove any table prefix from index field
-                       $indexColumn = end( explode( '.', $this->mIndexField ) );
+                       $parts = explode( '.', $this->mIndexField );
+                       $indexColumn = end( $parts );
                        
                        $row = $res->fetchRow();
                        $firstIndex = $row[$indexColumn];
@@ -936,7 +937,9 @@ abstract class TablePager extends IndexPager {
        function getNavigationBar() {
                global $wgStylePath, $wgContLang;
 
-               if ( !$this->isNavigationBarShown() ) return '';
+               if ( !$this->isNavigationBarShown() ) {
+                       return '';
+               }
 
                $path = "$wgStylePath/common/images";
                $labels = array(