mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[feature/avatars] Shorten avatar driver's class name
The addition of "core_" that was used until now would require additional avatar drivers (e.g. in extensions) to also include that in their class name which would be incorrect. PHPBB3-10018
This commit is contained in:
@@ -564,7 +564,7 @@ class ucp_profile
|
||||
if (check_form_key('ucp_avatar'))
|
||||
{
|
||||
$driver = str_replace('_', '.', request_var('avatar_driver', ''));
|
||||
$config_name = preg_replace('#^avatar.driver.core.#', '', $driver);
|
||||
$config_name = preg_replace('#^avatar.driver.#', '', $driver);
|
||||
if (in_array($driver, $avatar_drivers) && $config["allow_avatar_$config_name"])
|
||||
{
|
||||
$avatar = $phpbb_avatar_manager->get_driver($driver);
|
||||
|
Reference in New Issue
Block a user