mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +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)
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue