From 92ccfd5e08111ef9b067ce1df0238fedd5fe4772 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 18 Mar 2005 07:44:08 +0000 Subject: [PATCH] Fix misplaced braces which put 'special' tab on some pages incorrectly --- includes/SkinTemplate.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 3252809a70..a095c085fc 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -583,7 +583,6 @@ class SkinTemplate extends Skin { ); } } - } } else { //article doesn't exist or is deleted if($wgUser->isAllowed('delete')){ @@ -598,7 +597,7 @@ class SkinTemplate extends Skin { } wfProfileOut( "$fname-live" ); - if ( $wgUser->isLoggedIn() and $action != 'submit' ) { + if( $wgUser->isLoggedIn() and $action != 'submit' ) { if( !$this->mTitle->userIsWatching()) { $content_actions['watch'] = array( 'class' => ($action == 'watch' or $action == 'unwatch') ? 'selected' : false, @@ -613,15 +612,15 @@ class SkinTemplate extends Skin { ); } - # Validate tab. TODO: add validation to logged-in user rights - if($wgUseValidation){ # && $wgUser->isAllowed('validate')){ + # Validate tab. TODO: add validation to logged-in user rights + if($wgUseValidation){ # && $wgUser->isAllowed('validate')){ $content_actions['validate'] = array( 'class' => ($action == 'validate') ? 'selected' : false, 'text' => wfMsg('val_tab'), 'href' => $this->mTitle->getLocalUrl( 'action=validate' ) - ); + ); + } } - } else { /* show special page tab */ -- 2.20.1