From: Aaron Schulz Date: Thu, 10 Jan 2008 23:28:08 +0000 (+0000) Subject: Revert back for now, this is not quite correct X-Git-Tag: 1.31.0-rc.0~50066 X-Git-Url: http://git.cyclocoop.org/data/Luca_Pacioli_%28Gemaelde%29.jpeg?a=commitdiff_plain;h=09cfa64fa0275afe6ed90afae84af7405371494c;p=lhc%2Fweb%2Fwiklou.git Revert back for now, this is not quite correct --- diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 2e52142be1..6c6b1ab188 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->getRestrictions('create') ) ) { + if( !is_array( $this->mTitle->getTitleProtection() ) ) { $content_actions['protect'] = array( 'class' => ($action == 'protect') ? 'selected' : false, 'text' => wfMsg('protect'),