X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=maintenance%2FuserOptions.inc;h=c657c03f7bf7bfdc3564a062fade439cf3f910dc;hb=dae4c94d893057345f62a3d498fb85c0a54de5a6;hp=4b0a817b5b164b6c289368a5352b5d6e3643bf8c;hpb=e5facc46bc170c302438f60849041b0d6be75e82;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' ], [],