Jack Phoenix has submitted this change and it was merged.

Change subject: Fix fatal on MW 1.27+
......................................................................


Fix fatal on MW 1.27+

Bug: T145979
Change-Id: Ib5ff05168b89a5577044f43c2eea16e96ed435bf
---
M DeepSea.skin.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jack Phoenix: Verified; Looks good to me, approved



diff --git a/DeepSea.skin.php b/DeepSea.skin.php
index 338e422..48604d0 100644
--- a/DeepSea.skin.php
+++ b/DeepSea.skin.php
@@ -71,7 +71,7 @@
                $nav = $this->data['content_navigation'];
 
                if ( $wgVectorUseIconWatch ) {
-                       $mode = $this->getSkin()->getTitle()->userIsWatching() 
? 'unwatch' : 'watch';
+                       $mode = $this->getSkin()->getUser()->isWatched( 
$this->getSkin()->getTitle() ) ? 'unwatch' : 'watch';
                        if ( isset( $nav['actions'][$mode] ) ) {
                                $nav['views'][$mode] = $nav['actions'][$mode];
                                $nav['views'][$mode]['class'] = rtrim( 'icon ' 
. $nav['views'][$mode]['class'], ' ' );

-- 
To view, visit https://gerrit.wikimedia.org/r/311341
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib5ff05168b89a5577044f43c2eea16e96ed435bf
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/skins/DeepSea
Gerrit-Branch: master
Gerrit-Owner: Jack Phoenix <j...@countervandalism.net>
Gerrit-Reviewer: Jack Phoenix <j...@countervandalism.net>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to