From: withoutaname Date: Thu, 24 Jul 2014 02:29:28 +0000 (-0700) Subject: Fix calls to DatabaseBase static functions X-Git-Tag: 1.31.0-rc.0~14391^2 X-Git-Url: https://git.cyclocoop.org/%20%27.%28%24debut%20%20%20%24par_page%29.%27?a=commitdiff_plain;h=b803906e08885bd59aae27db07d7a2d3439e70e1;p=lhc%2Fweb%2Fwiklou.git Fix calls to DatabaseBase static functions Previously they were calling Database:: which is a nonexistent class. Change-Id: I73b2ed4722c9108b6a00c8c0cabbda9564378b4b --- diff --git a/includes/installer/PostgresInstaller.php b/includes/installer/PostgresInstaller.php index 4caf90289c..6dcce23dec 100644 --- a/includes/installer/PostgresInstaller.php +++ b/includes/installer/PostgresInstaller.php @@ -158,7 +158,7 @@ class PostgresInstaller extends DatabaseInstaller { protected function openConnectionWithParams( $user, $password, $dbName, $schema ) { $status = Status::newGood(); try { - $db = Database::factory( 'postgres', array( + $db = DatabaseBase::factory( 'postgres', array( 'host' => $this->getVar( 'wgDBserver' ), 'user' => $user, 'password' => $password, diff --git a/tests/phpunit/includes/db/DatabaseTestHelper.php b/tests/phpunit/includes/db/DatabaseTestHelper.php index 39c311f119..0c0b39029f 100644 --- a/tests/phpunit/includes/db/DatabaseTestHelper.php +++ b/tests/phpunit/includes/db/DatabaseTestHelper.php @@ -136,7 +136,7 @@ class DatabaseTestHelper extends DatabaseBase { return false; } - function indexInfo( $table, $index, $fname = 'Database::indexInfo' ) { + function indexInfo( $table, $index, $fname = 'DatabaseBase::indexInfo' ) { return false; }