From 8709db17bbecaea0ef807bbee337bdcad40c35ae Mon Sep 17 00:00:00 2001 From: zenggang Date: Fri, 16 Jul 2021 08:46:15 +0800 Subject: [PATCH] * Adjust code --- module/custom/control.php | 2 +- module/custom/view/header.html.php | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/module/custom/control.php b/module/custom/control.php index 036d552cf3..d943bec607 100644 --- a/module/custom/control.php +++ b/module/custom/control.php @@ -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); diff --git a/module/custom/view/header.html.php b/module/custom/view/header.html.php index 6c4edddc41..70f9f5cd1a 100644 --- a/module/custom/view/header.html.php +++ b/module/custom/view/header.html.php @@ -15,10 +15,9 @@ if($sysObject == 'required') continue; common::printLink('custom', $sysObject, "", "{$lang->custom->$sysObject}", '', "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', "", "{$lang->custom->mode}", '', "class='btn btn-link' id='modeTab'"); - // } + + common::printLink('custom', 'mode', "", "{$lang->custom->mode}", '', "class='btn btn-link' id='modeTab'"); + ?>