* Refactor install::step4.
This commit is contained in:
@@ -15,3 +15,6 @@ $config->install->form->step2['dbPassword'] = array('type' => 'string', 'requir
|
||||
$config->install->form->step2['dbName'] = array('type' => 'string', 'required' => true);
|
||||
$config->install->form->step2['dbPrefix'] = array('type' => 'string', 'required' => true);
|
||||
$config->install->form->step2['clearDB'] = array('type' => 'int', 'required' => false, 'default' => 0);
|
||||
|
||||
$config->install->form->step4 = array();
|
||||
$config->install->form->step4['mode'] = array('type' => 'string', 'required' => true);
|
||||
|
||||
@@ -304,8 +304,9 @@ class install extends control
|
||||
{
|
||||
if(!isset($this->config->installed) || !$this->config->installed) return $this->send(array('result' => 'fail', 'message' => $this->lang->install->errorNotSaveConfig, 'load' => 'step3'));
|
||||
|
||||
$this->loadModel('setting')->setItem('system.common.global.mode', $this->post->mode);
|
||||
$this->loadModel('custom')->disableFeaturesByMode($this->post->mode);
|
||||
$mode = form::data()->get()->mode;
|
||||
$this->loadModel('setting')->setItem('system.common.global.mode', $mode);
|
||||
$this->loadModel('custom')->disableFeaturesByMode($mode);
|
||||
return $this->send(array('result' => 'success', 'load' => inlink('step5')));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user