diff options
author | nikrou <nikrou@piwigo.org> | 2009-11-16 19:17:01 +0000 |
---|---|---|
committer | nikrou <nikrou@piwigo.org> | 2009-11-16 19:17:01 +0000 |
commit | 8a299654501db00316a56efda76448a6bb3975e1 (patch) | |
tree | b34f9693380c3e4a69d7c9c45c011fb327560be1 /install.php | |
parent | 9a773f003c2c88f3916942b65c36912ff81cecf6 (diff) |
Feature 928 resolved.
Replace include/mysql.inc.php by include/config_database.inc.php to be independant of database engine
Rename database configurations variables by ones in $conf array.
git-svn-id: http://piwigo.org/svn/trunk@4280 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | install.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/install.php b/install.php index 2e82a9709..135c7fb47 100644 --- a/install.php +++ b/install.php @@ -168,7 +168,7 @@ $infos = array(); $errors = array(); // Open config.php ... if it exists -$config_file = PHPWG_ROOT_PATH.'include/mysql.inc.php'; +$config_file = PHPWG_ROOT_PATH.'include/config_database.inc.php'; if (@file_exists($config_file)) { include($config_file); @@ -291,10 +291,10 @@ if ( isset( $_POST['install'] )) { $step = 2; $file_content = '<?php -$cfgBase = \''.$dbname.'\'; -$cfgUser = \''.$dbuser.'\'; -$cfgPassword = \''.$dbpasswd.'\'; -$cfgHote = \''.$dbhost.'\'; +$conf[\'db_base\'] = \''.$dbname.'\'; +$conf[\'db_user\'] = \''.$dbuser.'\'; +$conf[\'db_password\'] = \''.$dbpasswd.'\'; +$conf[\'db_host\'] = \''.$dbhost.'\'; $prefixeTable = \''.$table_prefix.'\'; |