mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-13 12:14:06 +02:00
[feature/avatars] Move list of supported formats to avatar driver class
Using the regex and turning it into an array if necessary seemed like the cleanest approach to achieve this. PHPBB3-10018
This commit is contained in:
@@ -51,6 +51,11 @@ abstract class phpbb_avatar_driver implements phpbb_avatar_driver_interface
|
||||
*/
|
||||
protected $cache;
|
||||
|
||||
/**
|
||||
* Regex for allowed avatar image extensions
|
||||
*/
|
||||
const REGEX_ALLOWED_EXT = 'gif|jpg|jpeg|png';
|
||||
|
||||
/**
|
||||
* Construct a driver object
|
||||
*
|
||||
|
Reference in New Issue
Block a user