* Fix upgrade lang.

This commit is contained in:
孙广明
2022-02-28 10:16:30 +08:00
parent 931d6ddc48
commit 6b1c882cac
2 changed files with 4 additions and 13 deletions
+2 -7
View File
@@ -182,21 +182,16 @@ class upgrade extends control
}
$title = $this->lang->upgrade->toPMS15Guide;
if(isset($this->config->maxVersion))
if($this->config->edition == 'max')
{
$this->lang->upgrade->to15Desc = str_replace('15.0', $this->lang->maxName, $this->lang->upgrade->to15Desc);
$title = $this->lang->upgrade->toMAXGuide;
}
elseif(isset($this->config->bizVersion))
elseif($this->config->edition == 'biz')
{
$this->lang->upgrade->to15Desc = str_replace('15', $this->lang->bizName . '5', $this->lang->upgrade->to15Desc);
$title = $this->lang->upgrade->toBIZ5Guide;
}
elseif(isset($this->config->proVersion))
{
$this->lang->upgrade->to15Desc = str_replace('15', $this->lang->proName . '10', $this->lang->upgrade->to15Desc);
$title = $this->lang->upgrade->toPRO10Guide;
}
$this->view->title = $title;
$this->display();
+2 -6
View File
@@ -16,18 +16,14 @@
<form method='post'>
<div class='panel-title text-center'>
<?php
if(isset($config->maxVersion))
if($this->config->edition == 'max')
{
echo $lang->upgrade->toMAXGuide;
}
elseif(isset($config->bizVersion))
elseif($this->config->edition == 'biz')
{
echo $lang->upgrade->toBIZ5Guide;
}
elseif(isset($config->proVersion))
{
echo $lang->upgrade->toPRO10Guide;
}
else
{
echo $lang->upgrade->toPMS15Guide;