X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Frebuildrecentchanges.php;h=7267b2cac498f8890d575562ea97ca5481d48178;hb=33415e2930b8e583fe81ec026608c0af523f7afe;hp=35af15c8494c2489fbe5b25c81848273d771d007;hpb=0ae01716c36bd03192a6dc79816beee8a0a74fa5;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/rebuildrecentchanges.php b/maintenance/rebuildrecentchanges.php index 35af15c849..7267b2cac4 100644 --- a/maintenance/rebuildrecentchanges.php +++ b/maintenance/rebuildrecentchanges.php @@ -367,7 +367,9 @@ class RebuildRecentchanges extends Maintenance { # @NOTE: users with 'bot' rights choose when edits are bot edits or not. That information # may be lost at this point (aside from joining on the patrol log table entries). $botgroups = [ 'bot' ]; - $autopatrolgroups = $wgUseRCPatrol ? User::getGroupsWithPermission( 'autopatrol' ) : []; + $autopatrolgroups = $wgUseRCPatrol ? MediaWikiServices::getInstance() + ->getPermissionManager() + ->getGroupsWithPermission( 'autopatrol' ) : []; # Flag our recent bot edits if ( $botgroups ) {