* Skip registration process for non Chinese languages.

This commit is contained in:
zhangjialiang
2025-06-26 17:32:39 +08:00
parent 87f75c5629
commit 5be5df2c06
+9 -2
View File
@@ -462,9 +462,16 @@ class install extends control
if($oldRequestType == 'GET') $sendEventLink = str_replace('install.php', 'index.php', $sendEventLink);
}
$adminRegisterLink = helper::createLink('admin', 'register', '&_single=1');
if($this->app->cookie->lang == 'zh-cn')
{
$adminRegisterLink = helper::createLink('admin', 'register', '&_single=1');
$this->view->adminRegisterLink = str_replace('install.php', 'index.php', $adminRegisterLink);
}
else
{
$this->view->adminRegisterLink = helper::createLink('index');
}
$this->view->adminRegisterLink = str_replace('install.php', 'index.php', $adminRegisterLink);
$this->view->installFileDeleted = $installFileDeleted;
$this->view->title = $this->lang->install->success;
$this->view->sendEventLink = $sendEventLink;