Revert back for now, this is not quite correct
authorAaron Schulz <aaron@users.mediawiki.org>
Thu, 10 Jan 2008 23:28:08 +0000 (23:28 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Thu, 10 Jan 2008 23:28:08 +0000 (23:28 +0000)
includes/SkinTemplate.php

index 2e52142..6c6b1ab 100644 (file)
@@ -765,7 +765,7 @@ class SkinTemplate extends Skin {
                                }
 
                                if ( $this->mTitle->getNamespace() !== NS_MEDIAWIKI && $wgUser->isAllowed( 'protect' ) ) {
-                                       if( !is_array( $this->mTitle->getRestrictions('create') ) ) {
+                                       if( !is_array( $this->mTitle->getTitleProtection() ) ) {
                                                $content_actions['protect'] = array(
                                                        'class' => ($action == 'protect') ? 'selected' : false,
                                                        'text' => wfMsg('protect'),