X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fuser%2FUserArray.php;h=dddc850bd034304983dd70747c61e7f45701b8da;hb=1e584948edcd21fc6d28da86d876650dd472743e;hp=a4d43562af641557bed02db90e7800343bf03d0a;hpb=2a1fcd27c19913394c179cbe8be1a9e981d7f81b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/user/UserArray.php b/includes/user/UserArray.php index a4d43562af..dddc850bd0 100644 --- a/includes/user/UserArray.php +++ b/includes/user/UserArray.php @@ -46,7 +46,7 @@ abstract class UserArray implements Iterator { // Database::select() doesn't like empty arrays return new ArrayIterator( [] ); } - $dbr = wfGetDB( DB_SLAVE ); + $dbr = wfGetDB( DB_REPLICA ); $res = $dbr->select( 'user', User::selectFields(), @@ -67,7 +67,7 @@ abstract class UserArray implements Iterator { // Database::select() doesn't like empty arrays return new ArrayIterator( [] ); } - $dbr = wfGetDB( DB_SLAVE ); + $dbr = wfGetDB( DB_REPLICA ); $res = $dbr->select( 'user', User::selectFields(),