From: Aaron Schulz Date: Thu, 10 Jan 2008 23:13:45 +0000 (+0000) Subject: Don't call getTitleProtection(). That is really just an internal function for a DB... X-Git-Tag: 1.31.0-rc.0~50067 X-Git-Url: http://git.cyclocoop.org/%22.htmlspecialchars%28%24url_syndic%29.%22?a=commitdiff_plain;h=22f1d1c4c2c0cb0afccc86c41b6621be0d4bab1f;p=lhc%2Fweb%2Fwiklou.git Don't call getTitleProtection(). That is really just an internal function for a DB query. It shouldn't even by public as it is. Just check 'create' restrictions. This is where they are saved too. --- diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 09457ffc18..2e52142be1 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -765,7 +765,7 @@ class SkinTemplate extends Skin { } if ( $this->mTitle->getNamespace() !== NS_MEDIAWIKI && $wgUser->isAllowed( 'protect' ) ) { - if(!is_array($this->mTitle->getTitleProtection())){ + if( !is_array( $this->mTitle->getRestrictions('create') ) ) { $content_actions['protect'] = array( 'class' => ($action == 'protect') ? 'selected' : false, 'text' => wfMsg('protect'),