config-dist.php MDL-21603 - prevent php5 strict warnings with defualt config
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
// //
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
unset($CFG); // Ignore this line
|
||||
$CFG = new stdClass();
|
||||
|
||||
//=========================================================================
|
||||
// 1. DATABASE SETUP
|
||||
|
||||
@@ -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'])) {
|
||||
|
||||
Reference in New Issue
Block a user