X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FPager.php;h=b6956e5309f4d82f2de72d06c2831c39c29af3a3;hb=36d43eabc04a4c1446cd10fa2557f7a97ee72370;hp=68acc51bf785497f5b496c14828f6be992f3d66c;hpb=1a45345aa89480d0624a8b56f85b56ddadc5e212;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Pager.php b/includes/Pager.php index 68acc51bf7..b6956e5309 100644 --- a/includes/Pager.php +++ b/includes/Pager.php @@ -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(