X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FuserOptions.inc;h=c657c03f7bf7bfdc3564a062fade439cf3f910dc;hb=f32ee9acf4819af46f1c3d4759fc656448c49c92;hp=4b0a817b5b164b6c289368a5352b5d6e3643bf8c;hpb=d42754e47722436ef52218f21a8e544a05ee9ad7;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/userOptions.inc b/maintenance/userOptions.inc index 4b0a817b5b..c657c03f7b 100644 --- a/maintenance/userOptions.inc +++ b/maintenance/userOptions.inc @@ -140,8 +140,8 @@ class UserOptions { $ret = []; $defaultOptions = User::getDefaultOptions(); - // We list user by user_id from one of the slave database - $dbr = wfGetDB( DB_SLAVE ); + // We list user by user_id from one of the replica DBs + $dbr = wfGetDB( DB_REPLICA ); $result = $dbr->select( 'user', [ 'user_id' ], [], @@ -194,8 +194,8 @@ class UserOptions { private function CHANGER() { $this->warn(); - // We list user by user_id from one of the slave database - $dbr = wfGetDB( DB_SLAVE ); + // We list user by user_id from one of the replica DBs + $dbr = wfGetDB( DB_REPLICA ); $result = $dbr->select( 'user', [ 'user_id' ], [],