From: cenarium Date: Fri, 13 Feb 2015 12:55:28 +0000 (+0100) Subject: Check use of RC patrol for watchlists X-Git-Tag: 1.31.0-rc.0~12405 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=4c228c92f0574fa340d35509de5720dfb3d31eb7;p=lhc%2Fweb%2Fwiklou.git Check use of RC patrol for watchlists This checks use of RC patrol instead of NP patrol to determine when to display show/hide patroled edits in watchlists. RecentChanges already does this, and there's no use in displaying a setting that only affect new page creations in the watchlist. The filtering cannot work anyway since ChangesListSpecialPage checks for RC patrol on its own. Bug: T76054 Change-Id: I9c587f56297881d58551ee302c4de01e9452b960 --- diff --git a/includes/specials/SpecialWatchlist.php b/includes/specials/SpecialWatchlist.php index ca3386cf3c..df9d363989 100644 --- a/includes/specials/SpecialWatchlist.php +++ b/includes/specials/SpecialWatchlist.php @@ -428,7 +428,7 @@ class SpecialWatchlist extends ChangesListSpecialPage { $filters[$key] = $params['msg']; } // Disable some if needed - if ( !$user->useNPPatrol() ) { + if ( !$user->useRCPatrol() ) { unset( $filters['hidepatrolled'] ); }