From fee04fc52d0f5c57b8cc179fbc6539a65c353a97 Mon Sep 17 00:00:00 2001 From: Daniel Friesen Date: Fri, 23 Mar 2012 02:45:47 -0700 Subject: [PATCH] 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 --- skins/Vector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'], ' ' ); -- 2.20.1