Fix #2114 Allow specifying file formats to be indexed

This commit is contained in:
mmx900 2023-06-14 19:13:48 +09:00
parent 22abeb7a88
commit 9611fc7bda
5 changed files with 36 additions and 1 deletions

View file

@ -158,6 +158,7 @@ class FileAdminController extends File
$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_indexing_format = Context::get('allow_indexing_format');
$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') ?: []);