Tpl: defaulty define upload_max_filesize variable from config

This commit is contained in:
Benjamin Renard 2023-02-27 16:58:28 +01:00
parent 765844bee9
commit eea359056b
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC

View file

@ -385,6 +385,12 @@ class Tpl {
Tpl :: assign(
'webstats_js_code',
App::get('webstats_js_code', null, 'string'));
// Upload max size
if (App::get('upload_max_filesize', null, 'int'))
Tpl :: assign(
'upload_max_filesize',
App::get('upload_max_filesize', null, 'int'));
}
/**