* fix bug install vision

This commit is contained in:
Zongjun Lan
2022-04-07 14:11:42 +08:00
parent 9065d0527e
commit 4846c7af1a
@@ -0,0 +1,25 @@
<?php
helper::importControl('install');
class myinstall extends install
{
/**
* Index page of install module.
*
* @access public
* @return void
*/
public function index()
{
if(!isset($this->config->installed) or !$this->config->installed) $this->session->set('installing', true);
$this->view->title = $this->lang->install->welcome;
if(!isset($this->view->versionName))
{
$versionName = ucfirst($this->config->vision);
if($this->config->edition == 'biz') $versionName .= 'VIP';
$versionName .= $this->config->liteVersion; // If the versionName variable has been defined in the max version, it cannot be defined here to avoid being overwritten.
$this->view->versionName = $versionName;
}
$this->display();
}
}