* Don't display the protec/unprotect tab in NS_MEDIAWIKI
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Thu, 8 Dec 2005 17:44:35 +0000 (17:44 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Thu, 8 Dec 2005 17:44:35 +0000 (17:44 +0000)
includes/SkinTemplate.php

index 96fb4b1..fe55f81 100644 (file)
@@ -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,