+ after install, update the version seting.

* fix the bug of pdo.
 * fix the bug of webroot.
This commit is contained in:
wangchunsheng
2010-01-25 08:59:24 +00:00
parent 3f01186170
commit ced7232076
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -23,6 +23,8 @@
*/
class install extends control
{
const VERSION = '0.4 beta';
/* 构造函数,检查是否是通过安装入口调用。*/
public function __construct()
{
@@ -95,6 +97,7 @@ class install extends control
{
$this->install->grantPriv();
if(dao::isError()) die(js::error(dao::getError()));
$this->loadModel('upgrade')->updateVersion(self::VERSION);
echo (js::alert($this->lang->install->success));
unset($_SESSION['installing']);
die(js::locate('index.php', 'parent'));