* Disable features during upgrade and installation.

This commit is contained in:
wangyuting2
2022-09-27 06:29:55 +00:00
parent 99f910d366
commit 23abb36523
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -205,6 +205,7 @@ class install extends control
if(!empty($_POST))
{
$this->loadModel('setting')->setItem('system.common.global.mode', $this->post->mode); // Update mode.
$this->loadModel('custom')->disableFeaturesByMode($this->post->mode);
return print(js::locate(inlink('step5'), 'parent'));
}
+1
View File
@@ -199,6 +199,7 @@ class upgrade extends control
{
$mode = fixer::input('post')->get('mode');
$this->loadModel('setting')->setItem('system.common.global.mode', $mode);
$this->loadModel('custom')->disableFeaturesByMode($mode);
/* Update sprint concept. */
$sprintConcept = 0;