aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/ucp_profile.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/ucp/ucp_profile.php')
-rw-r--r--phpBB/includes/ucp/ucp_profile.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/includes/ucp/ucp_profile.php b/phpBB/includes/ucp/ucp_profile.php
index 6b2133796d..f406e9dc5b 100644
--- a/phpBB/includes/ucp/ucp_profile.php
+++ b/phpBB/includes/ucp/ucp_profile.php
@@ -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);