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
$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'], ' ' );