X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fspecials%2Fpagers%2FBlockListPager.php;h=d61a1beed9bf27c9bf3094ec51b3a3c15ad058f2;hb=f9bb20657c6776a7543fbf33ead1c1e6fbad33de;hp=01aed2272633cab538307d9bd0b9f00d63d2cc16;hpb=9c36c584ffe4c4650083bd158b13ce2efde34268;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/pagers/BlockListPager.php b/includes/specials/pagers/BlockListPager.php index 01aed22726..d61a1beed9 100644 --- a/includes/specials/pagers/BlockListPager.php +++ b/includes/specials/pagers/BlockListPager.php @@ -45,9 +45,9 @@ class BlockListPager extends TablePager { * @param array $conds */ public function __construct( $page, $conds ) { + parent::__construct( $page->getContext(), $page->getLinkRenderer() ); $this->conds = $conds; $this->mDefaultDirection = IndexPager::DIR_DESCENDING; - parent::__construct( $page->getContext() ); } function getFieldNames() { @@ -70,6 +70,12 @@ class BlockListPager extends TablePager { return $headers; } + /** + * @param string $name + * @param string $value + * @return string + * @suppress PhanTypeArraySuspiciousNullable + */ function formatValue( $name, $value ) { static $msg = null; if ( $msg === null ) { @@ -97,7 +103,7 @@ class BlockListPager extends TablePager { $formatted = ''; - $linkRenderer = MediaWikiServices::getInstance()->getLinkRenderer(); + $linkRenderer = $this->getLinkRenderer(); switch ( $name ) { case 'ipb_timestamp': @@ -250,7 +256,7 @@ class BlockListPager extends TablePager { */ private function getRestrictionListHTML( stdClass $row ) { $items = []; - $linkRenderer = MediaWikiServices::getInstance()->getLinkRenderer(); + $linkRenderer = $this->getLinkRenderer(); foreach ( $this->restrictions as $restriction ) { if ( $restriction->getBlockId() !== (int)$row->ipb_id ) {