* Adjust code

This commit is contained in:
zenggang
2021-07-16 08:46:15 +08:00
parent 373ebc4522
commit 8709db17bb
2 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -541,7 +541,7 @@ class custom extends control
public function mode()
{
$mode = zget($this->config->global, 'mode', 'classic');
if($this->post->mode && $this->post->mode != $mode) // if mode value change
if($this->post->mode and $this->post->mode != $mode) // If mode value change.
{
$mode = fixer::input('post')->get('mode');
$this->loadModel('setting')->setItem('system.common.global.mode', $mode);
+3 -4
View File
@@ -15,10 +15,9 @@
if($sysObject == 'required') continue;
common::printLink('custom', $sysObject, "", "<span class='text'>{$lang->custom->$sysObject}</span>", '', "class='btn btn-link' id='{$sysObject}Tab'");
}
// if((isset($config->systemMode) and $config->systemMode == 'classic') || (isset($config->global->upgradeStep) and $config->global->upgradeStep == 'mergeProgram'))
// {
common::printLink('custom', 'mode', "", "<span class='text'>{$lang->custom->mode}</span>", '', "class='btn btn-link' id='modeTab'");
// }
common::printLink('custom', 'mode', "", "<span class='text'>{$lang->custom->mode}</span>", '', "class='btn btn-link' id='modeTab'");
?>
</div>
</div>