mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Fix #1207 enable option to control whether audio/video files are downloaded directly or through procFileDownload
This commit is contained in:
parent
7633bc7b3a
commit
66a6834204
5 changed files with 23 additions and 2 deletions
|
|
@ -127,9 +127,10 @@ class fileAdminController extends file
|
|||
{
|
||||
// Update configuration
|
||||
$config = getModel('module')->getModuleConfig('file');
|
||||
$config->allow_outlink = Context::get('allow_outlink');
|
||||
$config->allow_outlink = Context::get('allow_outlink') === 'N' ? 'N' : 'Y';
|
||||
$config->allow_outlink_format = Context::get('allow_outlink_format');
|
||||
$config->allow_outlink_site = Context::get('allow_outlink_site');
|
||||
$config->allow_multimedia_direct_download = Context::get('allow_multimedia_direct_download') === 'Y' ? 'Y' : 'N';
|
||||
$config->download_short_url = Context::get('download_short_url') === 'Y' ? 'Y' : 'N';
|
||||
$config->inline_download_format = array_map('utf8_trim', Context::get('inline_download_format'));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue