* Finish task #73470.
This commit is contained in:
@@ -233,6 +233,29 @@ class admin extends control
|
||||
$this->display();
|
||||
}
|
||||
|
||||
public function setModule()
|
||||
{
|
||||
if($_POST)
|
||||
{
|
||||
$closedFeatures = '';
|
||||
if(isset($_POST['module']))
|
||||
{
|
||||
foreach($this->post->module as $module => $options)
|
||||
{
|
||||
$checked = reset($options);
|
||||
if(!$checked) $closedFeatures .= "$module,";
|
||||
}
|
||||
}
|
||||
$closedFeatures = rtrim($closedFeatures, ',');
|
||||
$this->loadModel('setting')->setItem('system.common.closedFeatures', $closedFeatures);
|
||||
$this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => 'reload'));
|
||||
}
|
||||
$this->view->title = $this->lang->admin->setModuleIndex;
|
||||
$this->view->closedFeatures = $this->loadModel('setting')->getItem('owner=system&module=common§ion=&key=closedFeatures');
|
||||
$this->view->disabledFeatures = $this->setting->getItem('owner=system&module=common§ion=&key=disabledFeatures');
|
||||
$this->display();
|
||||
}
|
||||
|
||||
/**
|
||||
* Certify ztEmail.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user