Make determineCoreSchema a public function again in DatabasePostgres
authorPaladox <thomasmulhall410@yahoo.com>
Sat, 29 Oct 2016 22:09:52 +0000 (23:09 +0100)
committerPaladox <thomasmulhall410@yahoo.com>
Sat, 29 Oct 2016 22:13:14 +0000 (22:13 +0000)
It was changed to a private function today, but it is called in
PostgresInstaller so it is causing this error

PHP Fatal error:  Call to private method
DatabasePostgres::determineCoreSchema() from context 'PostgresInstaller'
in /home/travis/build/paladox/mw/includes/installer/PostgresInstaller.php
on line 515

Caused by I2a067ca89a03f9ebf3f70a4f36ddae92e5b1e468

Change-Id: Ifac5a5c7dfeceeb8c7827d6d70e757633df77ca5

includes/libs/rdbms/database/DatabasePostgres.php

index c0d92aa..d4d3aa8 100644 (file)
@@ -969,7 +969,7 @@ __INDEXATTR__;
         *
         * @param string $desiredSchema
         */
-       private function determineCoreSchema( $desiredSchema ) {
+       public function determineCoreSchema( $desiredSchema ) {
                $this->begin( __METHOD__, self::TRANSACTION_INTERNAL );
                if ( $this->schemaExists( $desiredSchema ) ) {
                        if ( in_array( $desiredSchema, $this->getSchemas() ) ) {