From: Daniel Friesen Date: Thu, 13 Jan 2011 22:42:05 +0000 (+0000) Subject: Fix bug 26034; Make the View / Read tab in content_navigation style tabs (skins like... X-Git-Tag: 1.31.0-rc.0~32565 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=7da18d25f69306c397c515db5566ee3083932158;p=lhc%2Fweb%2Fwiklou.git Fix bug 26034; Make the View / Read tab in content_navigation style tabs (skins like Vector) stay selected when on &action=purge. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index b482cf2668..1671a6d509 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index dff507adb1..53d17506e5 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -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 }