* Adjust code
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user