From: Ævar Arnfjörð Bjarmason Date: Thu, 8 Dec 2005 17:44:35 +0000 (+0000) Subject: * Don't display the protec/unprotect tab in NS_MEDIAWIKI X-Git-Tag: 1.6.0~983 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=6c99eb14388be5ba3782dd1eb871a29d486b7aab;p=lhc%2Fweb%2Fwiklou.git * Don't display the protec/unprotect tab in NS_MEDIAWIKI --- 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,