dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Replace use of deprecated methods in Linker and SkinFactory classes"
[lhc/web/wiklou.git]
/
includes
/
specials
/
pagers
/
BlockListPager.php
diff --git
a/includes/specials/pagers/BlockListPager.php
b/includes/specials/pagers/BlockListPager.php
index
d09b345
..
a2dbb72
100644
(file)
--- a/
includes/specials/pagers/BlockListPager.php
+++ b/
includes/specials/pagers/BlockListPager.php
@@
-249,6
+249,7
@@
class BlockListPager extends TablePager {
*/
private function getRestrictionListHTML( stdClass $row ) {
$items = [];
*/
private function getRestrictionListHTML( stdClass $row ) {
$items = [];
+ $linkRenderer = MediaWikiServices::getInstance()->getLinkRenderer();
foreach ( $this->restrictions as $restriction ) {
if ( $restriction->getBlockId() !== (int)$row->ipb_id ) {
foreach ( $this->restrictions as $restriction ) {
if ( $restriction->getBlockId() !== (int)$row->ipb_id ) {
@@
-261,20
+262,20
@@
class BlockListPager extends TablePager {
$items[$restriction->getType()][] = Html::rawElement(
'li',
[],
$items[$restriction->getType()][] = Html::rawElement(
'li',
[],
-
Linker::l
ink( $restriction->getTitle() )
+
$linkRenderer->makeL
ink( $restriction->getTitle() )
);
}
break;
case NamespaceRestriction::TYPE:
$text = $restriction->getValue() === NS_MAIN
);
}
break;
case NamespaceRestriction::TYPE:
$text = $restriction->getValue() === NS_MAIN
- ? $this->msg( 'blanknamespace' )
+ ? $this->msg( 'blanknamespace' )
->text()
: $this->getLanguage()->getFormattedNsText(
$restriction->getValue()
);
$items[$restriction->getType()][] = Html::rawElement(
'li',
[],
: $this->getLanguage()->getFormattedNsText(
$restriction->getValue()
);
$items[$restriction->getType()][] = Html::rawElement(
'li',
[],
-
Linker::l
ink(
+
$linkRenderer->makeL
ink(
SpecialPage::getTitleValueFor( 'Allpages' ),
$text,
[],
SpecialPage::getTitleValueFor( 'Allpages' ),
$text,
[],