Hide MathShowImage from Special:SpecialPages

This special page is not intented to be used interactively
and its title is not translatable, so it shouldn't be shown
on Special:SpecialPages.

Change-Id: Idc83ecc2924cf417d102d3d1b0fedffd5d393300
This commit is contained in:
Amir E. Aharoni 2014-06-28 11:59:55 +03:00
parent 94ded6c7b9
commit 877a0b447b

View file

@ -10,7 +10,11 @@ class SpecialMathShowImage extends SpecialPage {
private $mode = false;
function __construct() {
parent::__construct( 'MathShowImage' );
parent::__construct(
'MathShowImage',
'', // Don't restrict
false // Don't show on Special:SpecialPages - it's not useful interactively
);
}
/**
* Sets headers - this should be called from the execute() method of all derived classes!
@ -108,4 +112,4 @@ class SpecialMathShowImage extends SpecialPage {
return $result;
}
}
}