db.config 생성 시 오류 수정.

This commit is contained in:
bnu 2013-11-27 16:00:29 +09:00
parent 0103a8dccf
commit 25ae16e15b

View file

@ -538,7 +538,10 @@ class installController extends install
function _getDBConfigFileContents($db_info) function _getDBConfigFileContents($db_info)
{ {
$buff = '<?php if(!defined("__XE__")) exit();'."\n"; $buff = array();
$buff[] = '<?php if(!defined("__XE__")) exit();';
$buff[] = '$db_info = new stdClass;';
$db_info = get_object_vars($db_info); $db_info = get_object_vars($db_info);
foreach($db_info as $key => $val) foreach($db_info as $key => $val)
{ {
@ -573,10 +576,11 @@ class installController extends install
throw new Exception('msg_invalid_request'); throw new Exception('msg_invalid_request');
} }
$buff .= $tmpValue; $buff[] = $tmpValue;
} }
$buff .= "?>"; $buff[] = "?>";
return $buff;
return implode(PHP_EOL, $buff);
} }
/** /**