config-dist.php MDL-21603 - prevent php5 strict warnings with defualt config

This commit is contained in:
Dan Poltawski
2010-02-21 14:46:49 +00:00
parent d472b68b11
commit f01ce862ec
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -28,6 +28,7 @@
// //
///////////////////////////////////////////////////////////////////////////
unset($CFG); // Ignore this line
$CFG = new stdClass();
//=========================================================================
// 1. DATABASE SETUP
+1
View File
@@ -533,6 +533,7 @@ if ($nextstage == SAVE) {
$str .= 'unset($CFG);'."\r\n";
$str .= "\r\n";
$str .= '$CFG = new stdClass();'."\r\n";
$str .= '$CFG->dbtype = \''.$INSTALL['dbtype']."';\r\n";
$str .= '$CFG->dbhost = \''.addslashes($INSTALL['dbhost'])."';\r\n";
if (!empty($INSTALL['dbname'])) {