* @ingroup SpecialPage
*/
+use MediaWiki\MediaWikiServices;
+
/**
* A special page that lists special pages
*
}
private function getPageGroups() {
- $pages = SpecialPageFactory::getUsablePages( $this->getUser() );
+ $pages = MediaWikiServices::getInstance()->getSpecialPageFactory()->
+ getUsablePages( $this->getUser() );
if ( !count( $pages ) ) {
# Yeah, that was pointless. Thanks for coming.
$out->wrapWikiMsg(
"<h2 class=\"mw-specialpages-note-top\">$1</h2>", 'specialpages-note-top'
);
- $out->addWikiText(
- "<div class=\"mw-specialpages-notes\">\n" .
- implode( "\n", $notes ) .
- "\n</div>"
+ $out->wrapWikiTextAsInterface(
+ 'mw-specialpages-notes',
+ implode( "\n", $notes )
);
}
}