From c15ca72f1d7350ca3ee50dbec414490c967f2ad4 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 20 Aug 2008 08:24:10 +0000 Subject: [PATCH] minor refactoring --- includes/SkinTemplate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 0d63295b08..bbbcff0d58 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -706,7 +706,7 @@ class SkinTemplate extends Skin { wfProfileOut( __METHOD__."-edit" ); wfProfileIn( __METHOD__."-live" ); - if ( $this->mTitle->getArticleId() ) { + if ( $this->mTitle->exists() ) { $content_actions['history'] = array( 'class' => ($action == 'history') ? 'selected' : false, @@ -731,7 +731,7 @@ class SkinTemplate extends Skin { } if ( $this->mTitle->getNamespace() !== NS_MEDIAWIKI && $wgUser->isAllowed( 'protect' ) ) { - if(!$this->mTitle->isProtected()){ + if( !$this->mTitle->isProtected() ){ $content_actions['protect'] = array( 'class' => ($action == 'protect') ? 'selected' : false, 'text' => wfMsg('protect'), -- 2.20.1