Follow-up r90408: use $user->useRCPatrol()
authorMatěj Grabovský <mgrabovsky@users.mediawiki.org>
Sat, 25 Jun 2011 10:04:14 +0000 (10:04 +0000)
committerMatěj Grabovský <mgrabovsky@users.mediawiki.org>
Sat, 25 Jun 2011 10:04:14 +0000 (10:04 +0000)
includes/Preferences.php

index 8e30508..5df8b54 100644 (file)
@@ -818,7 +818,7 @@ class Preferences {
                        'section' => 'rc/advancedrc',
                );
 
-               if ( $wgUseRCPatrol && $user->isAllowed( 'patrol' ) ) {
+               if ( $user->useRCPatrol() ) {
                        $defaultPreferences['hidepatrolled'] = array(
                                'type' => 'toggle',
                                'section' => 'rc/advancedrc',