Index: trunk/phase3/includes/SkinTemplate.php |
— | — | @@ -765,7 +765,7 @@ |
766 | 766 | } |
767 | 767 | |
768 | 768 | if ( $this->mTitle->getNamespace() !== NS_MEDIAWIKI && $wgUser->isAllowed( 'protect' ) ) { |
769 | | - if(!is_array($this->mTitle->getTitleProtection())){ |
| 769 | + if( !is_array( $this->mTitle->getRestrictions('create') ) ) { |
770 | 770 | $content_actions['protect'] = array( |
771 | 771 | 'class' => ($action == 'protect') ? 'selected' : false, |
772 | 772 | 'text' => wfMsg('protect'), |