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