jenkins-bot has submitted this change and it was merged.

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(-)

Approvals:
  Catrope: Looks good to me, approved
  jenkins-bot: Verified



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: merged
Gerrit-Change-Id: I4b5f0b702c308c9ec57c28f266145c7457a45e33
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/LiquidThreads
Gerrit-Branch: master
Gerrit-Owner: Sbisson <[email protected]>
Gerrit-Reviewer: Catrope <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to