From b803906e08885bd59aae27db07d7a2d3439e70e1 Mon Sep 17 00:00:00 2001 From: withoutaname Date: Wed, 23 Jul 2014 19:29:28 -0700 Subject: [PATCH] Fix calls to DatabaseBase static functions Previously they were calling Database:: which is a nonexistent class. Change-Id: I73b2ed4722c9108b6a00c8c0cabbda9564378b4b --- includes/installer/PostgresInstaller.php | 2 +- tests/phpunit/includes/db/DatabaseTestHelper.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.20.1