mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Save per-board configuration
This commit is contained in:
parent
173dd35d42
commit
f7367f2888
10 changed files with 15 additions and 71 deletions
|
|
@ -226,30 +226,6 @@ class trashAdminController extends trash
|
|||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* set trash module config
|
||||
* @return void|Object
|
||||
*/
|
||||
function procTrashAdminConfig()
|
||||
{
|
||||
$oTrashModel = getModel('trash');
|
||||
$config = $oTrashModel->getConfig();
|
||||
$oModuleController = getController('module');
|
||||
|
||||
$obj = Context::getRequestVars();
|
||||
|
||||
$config->trash_use = $obj->trash_use;
|
||||
|
||||
$output = $oModuleController->updateModuleConfig('trash', $config);
|
||||
if(!$output->toBool())
|
||||
{
|
||||
$this->setMessage('success_updated');
|
||||
}
|
||||
|
||||
$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', 'admin', 'act', 'dispTrashAdminConfig');
|
||||
$this->setRedirectUrl($returnUrl);
|
||||
}
|
||||
}
|
||||
/* End of file trash.admin.controller.php */
|
||||
/* Location: ./modules/trash/trash.admin.controller.php */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue