take maxFilesize from systemsettings
* does not work everywhere...
This commit is contained in:
parent
359ad6ff5a
commit
be2afac60d
8 changed files with 40 additions and 8 deletions
|
|
@ -408,6 +408,11 @@ class Conversation
|
|||
|
||||
'$compose_link_title' => $this->l10n->t('Open Compose page'),
|
||||
'$always_open_compose' => $this->pConfig->get($this->session->getLocalUserId(), 'frio', 'always_open_compose', false),
|
||||
// Dropzone
|
||||
//'$max_imagesize' => DI::config()->get('system', 'maximagesize'),
|
||||
// DI::config.. does not work here, so it is set to a manual value
|
||||
'$max_imagesize' => 600000,
|
||||
|
||||
]);
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -240,6 +240,9 @@ class Compose extends BaseModule
|
|||
'deny_cid' => $contact_deny_list,
|
||||
'deny_gid' => $group_deny_list,
|
||||
]),
|
||||
|
||||
// Dropzone
|
||||
'$max_imagesize' => DI::config()->get('system', 'maximagesize')
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -182,6 +182,11 @@ class Edit extends BaseModule
|
|||
'$shortpermset' => $this->t('Permissions'),
|
||||
|
||||
'$compose_link_title' => $this->t('Open Compose page'),
|
||||
// Dropzone
|
||||
//'$max_imagesize' => DI::config()->get('system', 'maximagesize'),
|
||||
// DI::config.. does not work here, so it is set to a manual value
|
||||
'$max_imagesize' => 500000,
|
||||
|
||||
]);
|
||||
|
||||
return $output;
|
||||
|
|
|
|||
|
|
@ -1068,7 +1068,9 @@ class Post
|
|||
'$prompttext' => DI::l10n()->t('Please enter a image/video/audio/webpage URL:'),
|
||||
'$preview' => DI::l10n()->t('Preview'),
|
||||
'$indent' => $indent,
|
||||
'$rand_num' => Crypto::randomDigits(12)
|
||||
'$rand_num' => Crypto::randomDigits(12),
|
||||
// Dropzone
|
||||
'$max_imagesize' => DI::config()->get('system', 'maximagesize'),
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue