Use 'api' querygroup
authorAaron Schulz <aaron@users.mediawiki.org>
Tue, 13 May 2008 21:04:24 +0000 (21:04 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Tue, 13 May 2008 21:04:24 +0000 (21:04 +0000)
includes/api/ApiQuery.php

index 8f2f8df..8c28738 100644 (file)
@@ -124,7 +124,7 @@ class ApiQuery extends ApiBase {
        public function getDB() {
                if (!isset ($this->mSlaveDB)) {
                        $this->profileDBIn();
-                       $this->mSlaveDB = wfGetDB(DB_SLAVE);
+                       $this->mSlaveDB = wfGetDB(DB_SLAVE,'api');
                        $this->profileDBOut();
                }
                return $this->mSlaveDB;