Sbisson has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/232493

Change subject: Remove new messages notice from watchlist
......................................................................

Remove new messages notice from watchlist

Remove new messages notice from watchlist when
$wgLiquidThreadsEnableNewMessages is false.

Bug: T107897
Change-Id: I4b5f0b702c308c9ec57c28f266145c7457a45e33
---
M classes/Hooks.php
1 file changed, 5 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/LiquidThreads 
refs/changes/93/232493/1

diff --git a/classes/Hooks.php b/classes/Hooks.php
index 07ff3d5..503ecef 100644
--- a/classes/Hooks.php
+++ b/classes/Hooks.php
@@ -101,7 +101,11 @@
        }
 
        static function beforeWatchlist( &$conds, &$tables, &$join_conds, 
&$fields ) {
-               global $wgOut, $wgUser;
+               global $wgLiquidThreadsEnableNewMessages, $wgOut, $wgUser;
+
+               if ( !$wgLiquidThreadsEnableNewMessages ) {
+                       return true;
+               }
 
                $db = wfGetDB( DB_SLAVE );
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4b5f0b702c308c9ec57c28f266145c7457a45e33
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/LiquidThreads
Gerrit-Branch: master
Gerrit-Owner: Sbisson <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to