X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fpager%2FIndexPager.php;h=e9cadf34bcbe28b85c83a9d955b228112e875354;hb=ddf37fec6d3e7c6a382dc94087e380864eac60d4;hp=b00ec3a893c65c0e89615f404edf04ab4ec2b83c;hpb=722f51c7e809e13d85ea7735715f9d8548082120;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/pager/IndexPager.php b/includes/pager/IndexPager.php index b00ec3a893..e9cadf34bc 100644 --- a/includes/pager/IndexPager.php +++ b/includes/pager/IndexPager.php @@ -80,6 +80,7 @@ abstract class IndexPager extends ContextSource implements Pager { public $mDefaultLimit = 50; public $mOffset, $mLimit; public $mQueryDone = false; + /** @var IDatabase */ public $mDb; public $mPastTheEndRow; @@ -472,7 +473,7 @@ abstract class IndexPager extends ContextSource implements Pager { } if ( in_array( $type, [ 'asc', 'desc' ] ) ) { - $attrs['title'] = wfMessage( $type == 'asc' ? 'sort-ascending' : 'sort-descending' )->text(); + $attrs['title'] = $this->msg( $type == 'asc' ? 'sort-ascending' : 'sort-descending' )->text(); } if ( $type ) { @@ -693,7 +694,7 @@ abstract class IndexPager extends ContextSource implements Pager { * Needless to say, it's really not a good idea to use a non-unique index * for this! That won't page right. * - * @return string|array + * @return string|string[] */ abstract function getIndexField(); @@ -711,7 +712,7 @@ abstract class IndexPager extends ContextSource implements Pager { * page_len,page_id avoids temp tables (given a page_len index). This would * also work if page_id was non-unique but we had a page_len,page_id index. * - * @return array + * @return string[]|array[] */ protected function getExtraSortFields() { return [];