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:
committed by
Marc Alexander
parent
dc397755d5
commit
dc9b1c37b1
@@ -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;
|
||||
|
Reference in New Issue
Block a user