From: Gabriel Wicke Date: Sat, 1 May 2004 01:21:36 +0000 (+0000) Subject: bah- edit tab was always selected.. X-Git-Tag: 1.3.0beta1~173 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=5f51734f4466cf842098d3e79e6113d24fbc930d;p=lhc%2Fweb%2Fwiklou.git bah- edit tab was always selected.. --- diff --git a/includes/SkinPHPTal.php b/includes/SkinPHPTal.php index 460ee355dd..d31980597d 100644 --- a/includes/SkinPHPTal.php +++ b/includes/SkinPHPTal.php @@ -333,7 +333,7 @@ $istalk = ( Namespace::isTalk( $wgTitle->getNamespace()) ); $istalkclass = $istalk?' istalk':''; $content_actions['edit'] = array( - 'class' => (($this->iseditable and $section != 'new') ? 'selected' : '').$istalkclass, + 'class' => ((($action == 'edit' or $action == 'submit') and $section != 'new') ? 'selected' : '').$istalkclass, 'text' => wfMsg('edit'), 'href' => $this->makeUrl($this->thispage, 'action=edit'.$oid), 'ttip' => wfMsg('tooltip-edit'),