1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[feature/avatars] Fix variable names

PHPBB3-10018
This commit is contained in:
Marc Alexander
2012-11-30 16:46:11 +01:00
parent d5cbedaaa2
commit 33b98dc5ba
7 changed files with 62 additions and 68 deletions

View File

@@ -1367,18 +1367,18 @@ function get_avatar($row, $alt, $ignore_config = false)
);
$phpbb_avatar_manager = $phpbb_container->get('avatar.manager');
$avatar = $phpbb_avatar_manager->get_driver($row['avatar_type'], $ignore_config);
$driver = $phpbb_avatar_manager->get_driver($row['avatar_type'], $ignore_config);
$html = '';
if ($avatar)
if ($driver)
{
$html = $avatar->get_custom_html($row, $ignore_config, $alt);
$html = $driver->get_custom_html($row, $ignore_config, $alt);
if (!empty($html))
{
return $html;
}
$avatar_data = $avatar->get_data($row, $ignore_config);
$avatar_data = $driver->get_data($row, $ignore_config);
}
else
{