mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 16:56:44 +02:00
[feature/avatars] Rewrite drivers to use full class name
* Use full driver class name as avatar_type value * Move avatar drivers to core namespace * Make avatars installable through extensions PHPBB3-10018
This commit is contained in:
@@ -623,18 +623,18 @@ class ucp_profile
|
||||
}
|
||||
|
||||
$focused_driver = request_var('avatar_driver', $user->data['user_avatar_type']);
|
||||
|
||||
|
||||
foreach ($avatar_drivers as $driver)
|
||||
{
|
||||
if ($config["allow_avatar_$driver"])
|
||||
$avatar = $phpbb_avatar_manager->get_driver($driver);
|
||||
|
||||
if ($avatar->is_enabled())
|
||||
{
|
||||
$avatars_enabled = true;
|
||||
$template->set_filenames(array(
|
||||
'avatar' => "ucp_avatar_options_$driver.html",
|
||||
'avatar' => $avatar->get_template_name(),
|
||||
));
|
||||
|
||||
$avatar = $phpbb_avatar_manager->get_driver($driver);
|
||||
|
||||
if ($avatar->prepare_form($template, $avatar_data, $error))
|
||||
{
|
||||
$driver_u = strtoupper($driver);
|
||||
|
Reference in New Issue
Block a user