issue 566, fix problem about install using install config

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9692 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2011-10-20 05:17:39 +00:00
parent 59b7ce4d96
commit ff22c78305
2 changed files with 34 additions and 4 deletions

View file

@ -34,8 +34,10 @@
if(is_array($install_config)){
foreach($install_config as $k => $v) Context::set($k,$v,true);
unset($GLOBALS['__DB__']);
Context::set('install_config', true, true);
$oInstallController = &getController('install');
$oInstallController->procInstall();
$output = $oInstallController->procInstall();
if (!$output->toBool()) return $output;
header("location: ./");
Context::close();
exit;