X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FPreferences.php;h=40c3a2b888d632e10735fba33d6c74bd70602d09;hb=c91fd8043b4484566caab5e88397db1b40293c48;hp=84d41895244c8ff01afc89f961eb57326f686106;hpb=23650785efd515088e41a12bf4dff70ca3467ccc;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Preferences.php b/includes/Preferences.php index 84d4189524..40c3a2b888 100644 --- a/includes/Preferences.php +++ b/includes/Preferences.php @@ -893,6 +893,9 @@ class Preferences { 'section' => 'rc/advancedrc', 'label-message' => 'tog-hidepatrolled', ); + } + + if ( $user->useNPPatrol() ) { $defaultPreferences['newpageshidepatrolled'] = array( 'type' => 'toggle', 'section' => 'rc/advancedrc', @@ -991,7 +994,7 @@ class Preferences { 'label-message' => 'tog-watchlisthideliu', ); - if ( $context->getConfig()->get( 'UseRCPatrol' ) ) { + if ( $user->useRCPatrol() ) { $defaultPreferences['watchlisthidepatrolled'] = array( 'type' => 'toggle', 'section' => 'watchlist/advancedwatchlist',