From: Daniel Friesen Date: Fri, 23 Mar 2012 09:45:47 +0000 (-0700) Subject: Vector did not show watch star on Special:MovePage X-Git-Tag: 1.31.0-rc.0~24151 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=fee04fc52d0f5c57b8cc179fbc6539a65c353a97;p=lhc%2Fweb%2Fwiklou.git Vector did not show watch star on Special:MovePage Fix the bug where Vector leaves "unwatch" in an action in the menu instead of converting it into an icon when you are on Special:MovePage/Foo. Apply to when using $wgVectorUseIconWatch = true; Change-Id: Ie914ac50974aa473fa474931ca69776dd1c2fc54 --- diff --git a/skins/Vector.php b/skins/Vector.php index 501a267118..d1b51a688e 100644 --- a/skins/Vector.php +++ b/skins/Vector.php @@ -72,7 +72,7 @@ class VectorTemplate extends BaseTemplate { $nav = $this->data['content_navigation']; if ( $wgVectorUseIconWatch ) { - $mode = $this->getSkin()->getTitle()->userIsWatching() ? 'unwatch' : 'watch'; + $mode = $this->getSkin()->getRelevantTitle()->userIsWatching() ? 'unwatch' : 'watch'; if ( isset( $nav['actions'][$mode] ) ) { $nav['views'][$mode] = $nav['actions'][$mode]; $nav['views'][$mode]['class'] = rtrim( 'icon ' . $nav['views'][$mode]['class'], ' ' );