bah- edit tab was always selected..
authorGabriel Wicke <gwicke@users.mediawiki.org>
Sat, 1 May 2004 01:21:36 +0000 (01:21 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Sat, 1 May 2004 01:21:36 +0000 (01:21 +0000)
includes/SkinPHPTal.php

index 460ee35..d319805 100644 (file)
                                        $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'),