From 3a6d2c0ea4118b4d8b37695f02d6bc64f4591917 Mon Sep 17 00:00:00 2001 From: Max Semenik Date: Sat, 19 Feb 2011 08:01:45 +0000 Subject: [PATCH] Bug 27053 - sourceFile() didn't expand all the required variables. Apparently, broken by r81084 --- includes/installer/MysqlInstaller.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/installer/MysqlInstaller.php b/includes/installer/MysqlInstaller.php index 938d59f878..cb02a2d24b 100644 --- a/includes/installer/MysqlInstaller.php +++ b/includes/installer/MysqlInstaller.php @@ -430,8 +430,8 @@ class MysqlInstaller extends DatabaseInstaller { return $status; } - $db = $this->getVar( 'wgDBname' ); $this->db->selectDB( $db ); + $this->setupSchemaVars(); $error = $this->db->sourceFile( "$IP/maintenance/users.sql" ); if ( $error !== true ) { $status->fatal( 'config-install-user-failed', $this->getVar( 'wgDBuser' ), $error ); @@ -463,6 +463,9 @@ class MysqlInstaller extends DatabaseInstaller { public function getSchemaVars() { return array( 'wgDBTableOptions' => $this->getTableOptions(), + 'wgDBname' => $this->getVar( 'wgDBname' ), + 'wgDBuser' => $this->getVar( 'wgDBuser' ), + 'wgDBpassword' => $this->getVar( 'wgDBpassword' ), ); } -- 2.20.1