1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/15671] Rewrite load extensions from a variable instead of harcode it

PHPBB3-15671
This commit is contained in:
Rubén Calvo
2018-05-27 13:40:52 +02:00
committed by Marc Alexander
parent dc397755d5
commit dc9b1c37b1
3 changed files with 3 additions and 3 deletions

View File

@@ -84,7 +84,7 @@ class upload extends \phpbb\avatar\driver\driver
$template->assign_vars(array(
'S_UPLOAD_AVATAR_URL' => ($this->config['allow_avatar_remote_upload']) ? true : false,
'AVATAR_UPLOAD_SIZE' => $this->config['avatar_filesize'],
'AVATAR_ALLOWED_EXTENSIONS' => $this->allowed_extensions,
'AVATAR_ALLOWED_EXTENSIONS' => implode(',', preg_replace('/^/', '.', $this->allowed_extensions)),
));
return true;