From: Aaron Schulz Date: Wed, 20 Aug 2008 08:24:10 +0000 (+0000) Subject: minor refactoring X-Git-Tag: 1.31.0-rc.0~45780 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=c15ca72f1d7350ca3ee50dbec414490c967f2ad4;p=lhc%2Fweb%2Fwiklou.git minor refactoring --- 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'),