diff --git a/install.php b/install.php index 5bccb9c6..b94468d5 100644 --- a/install.php +++ b/install.php @@ -1102,6 +1102,11 @@ function install_dispatch() { && install_check('db_structure') && install_check('db_data') ) { + // redirect to siteUrl if not cli + if (!install_is_cli()) { + Typecho_Response::getInstance()->redirect($options->siteUrl); + } + exit(1); } diff --git a/var/Typecho/Common.php b/var/Typecho/Common.php index 792d23f3..42111ac1 100644 --- a/var/Typecho/Common.php +++ b/var/Typecho/Common.php @@ -68,6 +68,7 @@ class Typecho_Common { /** 程序版本 */ const VERSION = '1.2/18.10.23'; + /** * 默认编码 * @@ -75,6 +76,7 @@ class Typecho_Common * @var string */ public static $charset = 'UTF-8'; + /** * 异常处理类 * @@ -82,6 +84,7 @@ class Typecho_Common * @var string */ public static $exceptionHandle; + /** * 允许的属性 *