mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-28 01:10:09 +00:00
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:
parent
94ded6c7b9
commit
877a0b447b
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue