X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FremoveUnusedAccounts.php;h=ec8fcfe1ae37e28e835915bcbbe228d617ed28d8;hb=5473e9e9eeea71b0a32b2b0e703529e196721407;hp=e3c99ed5c90bf8077fc886f113b026fed6246fde;hpb=fc1ca75323b5f424a9f8d28d42d85a311ed2f721;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/removeUnusedAccounts.php b/maintenance/removeUnusedAccounts.php index e3c99ed5c9..ec8fcfe1ae 100644 --- a/maintenance/removeUnusedAccounts.php +++ b/maintenance/removeUnusedAccounts.php @@ -45,7 +45,7 @@ class RemoveUnusedAccounts extends Maintenance { # Do an initial scan for inactive accounts and report the result $this->output( "Checking for unused user accounts...\n" ); $del = []; - $dbr = $this->getDB( DB_SLAVE ); + $dbr = $this->getDB( DB_REPLICA ); $res = $dbr->select( 'user', [ 'user_id', 'user_name', 'user_touched' ], '', __METHOD__ ); if ( $this->hasOption( 'ignore-groups' ) ) { $excludedGroups = explode( ',', $this->getOption( 'ignore-groups' ) ); @@ -107,7 +107,7 @@ class RemoveUnusedAccounts extends Maintenance { * @return bool */ private function isInactiveAccount( $id, $master = false ) { - $dbo = $this->getDB( $master ? DB_MASTER : DB_SLAVE ); + $dbo = $this->getDB( $master ? DB_MASTER : DB_REPLICA ); $checks = [ 'revision' => 'rev', 'archive' => 'ar',