Merge branch release/21.7.6 of zentao/zentaopms (#11905)

This commit is contained in:
刘刚
2025-10-17 09:07:30 +08:00
committed by Gitfox
2 changed files with 3 additions and 10 deletions
+2 -2
View File
@@ -24,8 +24,8 @@ class installModel extends model
{
$clientLang = $this->app->getClientLang();
$licenseCN = file_get_contents($this->app->getBasePath() . 'doc/LICENSE.CN');
$licenseEN = file_get_contents($this->app->getBasePath() . 'doc/LICENSE.EN');
$licenseCN = file_get_contents($this->app->getBasePath() . 'LICENSE.CN');
$licenseEN = file_get_contents($this->app->getBasePath() . 'LICENSE.EN');
if($clientLang == 'zh-cn' || $clientLang == 'zh-tw') return $licenseCN . $licenseEN;
return $licenseEN . $licenseCN;
+1 -8
View File
@@ -48,15 +48,8 @@ class upgrade extends control
{
if($this->get->agree == true) $this->locate(inlink('backup'));
$clientLang = $this->app->getClientLang();
$licenseCN = file_get_contents($this->app->getBasePath() . 'doc/LICENSE.CN');
$licenseEN = file_get_contents($this->app->getBasePath() . 'doc/LICENSE.EN');
$license = $licenseEN . $licenseCN;
if($clientLang == 'zh-cn' || $clientLang == 'zh-tw') $license = $licenseCN . $licenseEN;
$this->view->title = $this->lang->upgrade->common;
$this->view->license = $license;
$this->view->license = $this->loadModel('install')->getLicense();
$this->display();
}