Fix PostgreSQL updater broken by r113487
authorMarcin Cieślak <saper@users.mediawiki.org>
Fri, 9 Mar 2012 22:29:22 +0000 (22:29 +0000)
committerMarcin Cieślak <saper@users.mediawiki.org>
Fri, 9 Mar 2012 22:29:22 +0000 (22:29 +0000)
includes/db/DatabasePostgres.php

index 7dcbc5f..6452f54 100644 (file)
@@ -929,7 +929,7 @@ class DatabasePostgres extends DatabaseBase {
                                wfDebug("Schema \"" . $desired_schema . "\" already in the search path\n");
                        } else {
                                /**
-                                * Apped our schema (e.g. 'mediawiki') in front
+                                * Append our schema (e.g. 'mediawiki') in front
                                 * of the search path
                                 * Fixes bug 15816 
                                 */
@@ -937,6 +937,7 @@ class DatabasePostgres extends DatabaseBase {
                                array_unshift( $search_path, 
                                        $this->addIdentifierQuotes( $desired_schema ));
                                $this->setSearchPath( $search_path );   
+                               $this->mCoreSchema = $desired_schema;
                                wfDebug("Schema \"" . $desired_schema . "\" added to the search path\n");
                        }
                } else {