From 877a0b447ba661ef0a3618bf3c7c5620f25eac59 Mon Sep 17 00:00:00 2001 From: "Amir E. Aharoni" Date: Sat, 28 Jun 2014 11:59:55 +0300 Subject: [PATCH] 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 --- SpecialMathShowImage.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/SpecialMathShowImage.php b/SpecialMathShowImage.php index 3d38504..391291e 100644 --- a/SpecialMathShowImage.php +++ b/SpecialMathShowImage.php @@ -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; } -} \ No newline at end of file +}