Redirect to siteUrl if installation finished

This commit is contained in:
joyqi
2021-08-19 11:15:53 +08:00
parent 954e710013
commit 24bd3ab367
2 changed files with 8 additions and 0 deletions
+5
View File
@@ -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);
}