Fix copy+paste mistake from r79989
authorChad Horohoe <demon@users.mediawiki.org>
Tue, 11 Jan 2011 14:00:47 +0000 (14:00 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Tue, 11 Jan 2011 14:00:47 +0000 (14:00 +0000)
includes/installer/PostgresInstaller.php

index c562d17..a811dff 100644 (file)
@@ -214,7 +214,7 @@ class PostgresInstaller extends DatabaseInstaller {
                $conn = $status->value;
 
                $dbName = $this->getVar( 'wgDBname' );
-        $SQL = "SELECT 1 FROM pg_catalog.pg_database WHERE datname = " . $conn->addQuotes( $wgDBname );
+        $SQL = "SELECT 1 FROM pg_catalog.pg_database WHERE datname = " . $conn->addQuotes( $dbName );
         $rows = $conn->numRows( $conn->doQuery( $SQL ) );
                if( !$rows ) {
                        $schema = $this->getVar( 'wgDBmwschema' );