From 09cfa64fa0275afe6ed90afae84af7405371494c Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 10 Jan 2008 23:28:08 +0000 Subject: [PATCH] Revert back for now, this is not quite correct --- includes/SkinTemplate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'), -- 2.20.1