* Fix task#102500

This commit is contained in:
zenggang
2023-09-11 02:28:41 +00:00
parent d29b6ab08a
commit f7029c1d32
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ js::set('showFeatures', $showFeatures);
<?php $versionName = $lang->liteName . $config->liteVersion;?>
<?php else:?>
<?php $version = $config->version;?>
<?php $versionName = $lang->pmsName . $config->version;?>
<?php $versionName = ($config->inQuickon ? 'DevOps' : '') . $lang->pmsName . $config->version;?>
<a href='javascript:void(0)' id='bizLink' class='btn btn-link' style='color: #B57D4F;'><span class='upgrade'><?php echo $lang->bizName;?></span> <i class='text-danger icon-pro-version'></i></a>
<?php endif;?>
<a href='<?php echo $lang->website;?>' class="btn btn-sm btn-link" target='_blank' title='<?php echo $version;?>'>
+9
View File
@@ -37,8 +37,15 @@ class install extends control
if(!isset($this->config->installed) or !$this->config->installed) $this->session->set('installing', true);
$this->view->title = $this->lang->install->welcome;
if($this->config->versionPrefix) $this->config->version = $this->lang->{$this->config->edition . 'Name'} . str_replace(array('max', 'biz', 'ipd'), '', $this->config->version);
if(!isset($this->view->versionName)) $this->view->versionName = $this->config->version; // If the versionName variable has been defined in the max version, it cannot be defined here to avoid being overwritten.
if($this->config->inQuickon)
{
$devopsName = substr($this->view->versionName, 0, 3) == 'IPD' ? 'DevOps ' : 'DevOps';
$this->view->versionName = $devopsName . $this->view->versionName;
}
$this->display();
}
@@ -313,6 +320,8 @@ class install extends control
$this->lang->install->successLabel = str_replace('IPD', '', $this->lang->install->successLabel);
$this->lang->install->successNoticeLabel = str_replace('IPD', '', $this->lang->install->successNoticeLabel);
$this->config->version = $this->lang->{$this->config->edition . 'Name'} . str_replace(array('max', 'biz', 'ipd'), '', $this->config->version);
$devopsName = substr($this->config->version, 0, 3) == 'IPD' ? 'DevOps ' : 'DevOps';
$this->config->version = $devopsName . $this->config->version;
}
if($canDelFile and file_exists($upgradeFile)) unlink($upgradeFile);