X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=maintenance%2FgetReplicaServer.php;h=6e0a1fec2d590a0b145ec44073b0911adab486ae;hb=6f567677852d0cd047d1f2485f6c364879775acd;hp=b3e7377372f58e48d0840c1c2b2d38cea5723313;hpb=a206443c0e0f8efbdbc9b2e0a6b201a3a3527dd9;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/getReplicaServer.php b/maintenance/getReplicaServer.php index b3e7377372..6e0a1fec2d 100644 --- a/maintenance/getReplicaServer.php +++ b/maintenance/getReplicaServer.php @@ -40,7 +40,7 @@ class GetSlaveServer extends Maintenance { if ( $wgAllDBsAreLocalhost ) { $host = 'localhost'; } elseif ( $this->hasOption( 'group' ) ) { - $db = $this->getDB( DB_SLAVE, $this->getOption( 'group' ) ); + $db = $this->getDB( DB_REPLICA, $this->getOption( 'group' ) ); $host = $db->getServer(); } else { $lb = wfGetLB();