Index: trunk/phase3/includes/Title.php |
— | — | @@ -1255,7 +1255,7 @@ |
1256 | 1256 | * @return mixed An associative array representing any existent title |
1257 | 1257 | * protection, or false if there's none. |
1258 | 1258 | */ |
1259 | | - public function getTitleProtection() { |
| 1259 | + private function getTitleProtection() { |
1260 | 1260 | // Can't protect pages in special namespaces |
1261 | 1261 | if ( $this->getNamespace() < NS_MAIN ) { |
1262 | 1262 | return false; |
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( !$this->mTitle->getRestrictions( 'create' ) ) { |
770 | 770 | $content_actions['protect'] = array( |
771 | 771 | 'class' => ($action == 'protect') ? 'selected' : false, |
772 | 772 | 'text' => wfMsg('protect'), |