$pages = MediaWikiServices::getInstance()->getSpecialPageFactory()->
getUsablePages( $this->getUser() );
- if ( !count( $pages ) ) {
+ if ( $pages === [] ) {
# Yeah, that was pointless. Thanks for coming.
return false;
}
$out->wrapWikiMsg(
"<h2 class=\"mw-specialpages-note-top\">$1</h2>", 'specialpages-note-top'
);
- $out->addWikiTextAsInterface(
- "<div class=\"mw-specialpages-notes\">\n" .
- implode( "\n", $notes ) .
- "\n</div>"
+ $out->wrapWikiTextAsInterface(
+ 'mw-specialpages-notes',
+ implode( "\n", $notes )
);
}
}