*
* @ingroup SpecialPage
*/
-class SpecialPage {
+class SpecialPage implements MessageLocalizer {
// The canonical name of this special page
// Also used for the default <h1> heading, @see getDescription()
protected $mName;
* @return Message
* @see wfMessage
*/
- public function msg( /* $args */ ) {
+ public function msg( $key /* $args */ ) {
$message = call_user_func_array(
[ $this->getContext(), 'msg' ],
func_get_args()
* @since 1.25
*/
public function addHelpLink( $to, $overrideBaseUrl = false ) {
+ if ( $this->including() ) {
+ return;
+ }
+
global $wgContLang;
$msg = $this->msg( $wgContLang->lc( $this->getName() ) . '-helppage' );
* @since 1.28
* @return \MediaWiki\Linker\LinkRenderer
*/
- protected function getLinkRenderer() {
+ public function getLinkRenderer() {
if ( $this->linkRenderer ) {
return $this->linkRenderer;
} else {