From: daniel Date: Tue, 27 Nov 2012 18:18:55 +0000 (+0100) Subject: Fix per-connection database name in DBAccessBase. X-Git-Tag: 1.31.0-rc.0~21497^2 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=16a461ad4e8af5c4a533b8f5c0c7f7c062a586f6;p=lhc%2Fweb%2Fwiklou.git Fix per-connection database name in DBAccessBase. Change-Id: I5ac4bfb93f2dfee1e6822f7afd75ff81c0864e43 --- diff --git a/includes/dao/DBAccessBase.php b/includes/dao/DBAccessBase.php index 72e54fc901..b6ffdb8a83 100644 --- a/includes/dao/DBAccessBase.php +++ b/includes/dao/DBAccessBase.php @@ -50,12 +50,13 @@ abstract class DBAccessBase implements IDBAccessObject { * @see LoadBalancer::getConnection() * * @param int $id Which connection to use + * @param array $groups Query groups * * @return \DatabaseBase */ - protected function getConnection( $id ) { + protected function getConnection( $id, $groups = array() ) { $loadBalancer = wfGetLB( $this->wiki ); - return $loadBalancer->getConnection( $id ); + return $loadBalancer->getConnection( $id, $groups, $this->wiki ); } /**