From 6c99eb14388be5ba3782dd1eb871a29d486b7aab Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Thu, 8 Dec 2005 17:44:35 +0000 Subject: [PATCH] * Don't display the protec/unprotect tab in NS_MEDIAWIKI --- includes/SkinTemplate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 96fb4b1402..fe55f8129f 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -637,7 +637,7 @@ class SkinTemplate extends Skin { 'href' => $this->mTitle->getLocalUrl( 'action=history') ); - if($wgUser->isAllowed('protect')){ + if ( $this->mTitle->getNamespace() !== NS_MEDIAWIKI && $wgUser->isAllowed( 'protect' ) ) { if(!$this->mTitle->isProtected()){ $content_actions['protect'] = array( 'class' => ($action == 'protect') ? 'selected' : false, -- 2.20.1