Fix bug 26034; Make the View / Read tab in content_navigation style tabs (skins like...
authorDaniel Friesen <dantman@users.mediawiki.org>
Thu, 13 Jan 2011 22:42:05 +0000 (22:42 +0000)
committerDaniel Friesen <dantman@users.mediawiki.org>
Thu, 13 Jan 2011 22:42:05 +0000 (22:42 +0000)
RELEASE-NOTES
includes/SkinTemplate.php

index b482cf2..1671a6d 100644 (file)
@@ -73,6 +73,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 25506) Exception is thrown if OutputPage::parse is called inside a tag hook,
   which would reset parser state
 * (bug 26208) Mark directionality of some interlanguage links
+* (bug 26034) Make the "View / Read" tab in content_navigation style tabs remain
+  selected when the action is "purge".
 
 === API changes in 1.18 ===
 * (bug 26339) Throw warning when truncating an overlarge API result
index dff507a..53d1750 100644 (file)
@@ -842,7 +842,7 @@ class SkinTemplate extends Skin {
                                $content_navigation['views']['view'] = $this->tabAction(
                                        $isTalk ? $talkPage : $subjectPage,
                                        !wfEmptyMsg( "$skname-view-view" ) ? "$skname-view-view" : 'view',
-                                       ( $onPage && $action == 'view' ), '', true
+                                       ( $onPage && ($action == 'view' || $action == 'purge' ) ), '', true
                                );
                                $content_navigation['views']['view']['redundant'] = true; // signal to hide this from simple content_actions
                        }