Check use of RC patrol for watchlists
authorcenarium <cenarium.sysop@gmail.com>
Fri, 13 Feb 2015 12:55:28 +0000 (13:55 +0100)
committerUmherirrender <umherirrender_de.wp@web.de>
Sun, 15 Feb 2015 10:05:07 +0000 (10:05 +0000)
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

includes/specials/SpecialWatchlist.php

index ca3386c..df9d363 100644 (file)
@@ -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'] );
                }