From: Brion Vibber Date: Fri, 18 Mar 2005 07:44:08 +0000 (+0000) Subject: Fix misplaced braces which put 'special' tab on some pages incorrectly X-Git-Tag: 1.5.0alpha1~589 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=92ccfd5e08111ef9b067ce1df0238fedd5fe4772;p=lhc%2Fweb%2Fwiklou.git Fix misplaced braces which put 'special' tab on some pages incorrectly --- 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 */