mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Add the Recycle Bin allows you to save the settings.
This commit is contained in:
parent
af75450611
commit
ba4746f0fe
5 changed files with 55 additions and 8 deletions
|
|
@ -235,10 +235,17 @@ class trashAdminController extends trash
|
|||
{
|
||||
$oTrashModel = getModel('trash');
|
||||
$config = $oTrashModel->getConfig();
|
||||
$oModuleController = getController('module');
|
||||
|
||||
$obj = Context::getRequestVars();
|
||||
|
||||
$this->setMessage('success_updated');
|
||||
$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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue