X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialProtectedtitles.php;h=c800d96c783682d67bdd57b7a16054877b0f9eae;hb=c2602eaed5c726e1b78cc9ecb55a94392e923642;hp=2c79fec1daa108347ccd4bcb5747ddcaec027428;hpb=4618f70793d1178ca4c646ef397cf17b1cc70b44;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialProtectedtitles.php b/includes/specials/SpecialProtectedtitles.php index 2c79fec1da..c800d96c78 100644 --- a/includes/specials/SpecialProtectedtitles.php +++ b/includes/specials/SpecialProtectedtitles.php @@ -45,7 +45,7 @@ class SpecialProtectedtitles extends SpecialPage { $size = $request->getIntOrNull( 'size' ); $NS = $request->getIntOrNull( 'namespace' ); - $pager = new ProtectedTitlesPager( $this, array(), $type, $level, $NS, $sizetype, $size ); + $pager = new ProtectedTitlesPager( $this, [], $type, $level, $NS, $sizetype, $size ); $this->getOutput()->addHTML( $this->showOptions( $NS, $type, $level ) ); @@ -71,10 +71,10 @@ class SpecialProtectedtitles extends SpecialPage { if ( !$title ) { return Html::rawElement( 'li', - array(), + [], Html::element( 'span', - array( 'class' => 'mw-invalidtitle' ), + [ 'class' => 'mw-invalidtitle' ], Linker::getInvalidTitleDescription( $this->getContext(), $row->pt_namespace, @@ -85,7 +85,7 @@ class SpecialProtectedtitles extends SpecialPage { } $link = Linker::link( $title ); - $description_items = array(); + $description_items = []; // Messages: restriction-level-sysop, restriction-level-autoconfirmed $protType = $this->msg( 'restriction-level-' . $row->pt_create_perm )->escaped(); $description_items[] = $protType; @@ -122,7 +122,7 @@ class SpecialProtectedtitles extends SpecialPage { return "