mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
db.config 생성 시 오류 수정.
This commit is contained in:
parent
0103a8dccf
commit
25ae16e15b
1 changed files with 8 additions and 4 deletions
|
|
@ -538,7 +538,10 @@ class installController extends install
|
|||
|
||||
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);
|
||||
foreach($db_info as $key => $val)
|
||||
{
|
||||
|
|
@ -573,10 +576,11 @@ class installController extends install
|
|||
throw new Exception('msg_invalid_request');
|
||||
}
|
||||
|
||||
$buff .= $tmpValue;
|
||||
$buff[] = $tmpValue;
|
||||
}
|
||||
$buff .= "?>";
|
||||
return $buff;
|
||||
$buff[] = "?>";
|
||||
|
||||
return implode(PHP_EOL, $buff);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue