Fix calls to DatabaseBase static functions
authorwithoutaname <drevitchi@gmail.com>
Thu, 24 Jul 2014 02:29:28 +0000 (19:29 -0700)
committerWithoutaname <drevitchi@gmail.com>
Sun, 17 Aug 2014 03:23:18 +0000 (03:23 +0000)
Previously they were calling Database:: which is a nonexistent class.

Change-Id: I73b2ed4722c9108b6a00c8c0cabbda9564378b4b

includes/installer/PostgresInstaller.php
tests/phpunit/includes/db/DatabaseTestHelper.php

index 4caf902..6dcce23 100644 (file)
@@ -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,
index 39c311f..0c0b390 100644 (file)
@@ -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;
        }