1
0
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:
Marc Alexander
2013-01-25 01:24:15 +01:00
parent 869de98f52
commit 9c3538eb0e
4 changed files with 8 additions and 3 deletions

View File

@@ -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
*