Fix #1299, Fix #1346 implement proper file size limit for messages

This commit is contained in:
Kijin Sung 2023-11-06 08:26:01 +09:00
parent a647fff6b8
commit 7a659737cc
5 changed files with 11 additions and 1 deletions

View file

@ -15,7 +15,7 @@ class CommunicationAdminController extends communication
function procCommunicationAdminInsertConfig()
{
// get the default information
$args = Context::gets('enable_message', 'enable_friend', 'enable_attachment', 'skin', 'colorset', 'editor_skin', 'sel_editor_colorset', 'mskin', 'mcolorset', 'layout_srl', 'mlayout_srl', 'grant_send_default','grant_send_group');
$args = Context::gets('enable_message', 'enable_friend', 'enable_attachment', 'attachment_size_limit', 'skin', 'colorset', 'editor_skin', 'sel_editor_colorset', 'mskin', 'mcolorset', 'layout_srl', 'mlayout_srl', 'grant_send_default','grant_send_group');
$args->editor_colorset = $args->sel_editor_colorset;
unset($args->sel_editor_colorset);
@ -23,6 +23,7 @@ class CommunicationAdminController extends communication
$args->grant_send = $oCommunicationModel->getGrantArray($args->grant_send_default, $args->grant_send_group);
unset($args->grant_send_default);
unset($args->grant_send_group);
$args->attachment_size_limit = intval($args->attachment_size_limit) ?? 0;
// create the module module Controller object
$oModuleController = getController('module');