mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Add option to save changelog for files
This commit is contained in:
parent
ee7f11b0f1
commit
2cd2d0528b
8 changed files with 76 additions and 0 deletions
|
|
@ -138,6 +138,29 @@ class fileAdminController extends file
|
|||
return $this->setRedirectUrl($returnUrl, $output);
|
||||
}
|
||||
|
||||
/**
|
||||
* Save other configuration
|
||||
*
|
||||
* @return Object
|
||||
*/
|
||||
function procFileAdminInsertOtherConfig()
|
||||
{
|
||||
// Update configuration
|
||||
$config = getModel('module')->getModuleConfig('file');
|
||||
$config->save_changelog = Context::get('save_changelog') === 'Y' ? 'Y' : 'N';
|
||||
|
||||
// Save and redirect
|
||||
$oModuleController = getController('module');
|
||||
$output = $oModuleController->insertModuleConfig('file',$config);
|
||||
if(!$output->toBool())
|
||||
{
|
||||
return $output;
|
||||
}
|
||||
|
||||
$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', 'admin', 'act', 'dispFileAdminOtherConfig');
|
||||
return $this->setRedirectUrl($returnUrl, $output);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add file information for each module
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue