Merge branch release/21.7.6 of zentao/zentaopms (#11905)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user