mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/15233] Standardize variable generation
PHPBB3-15233
This commit is contained in:
@@ -761,16 +761,10 @@ class ucp_profile
|
||||
$avatar_helper = $phpbb_container->get('avatar.helper');
|
||||
|
||||
$avatar = $avatar_helper->get_user_avatar($user->data, 'USER_AVATAR', true);
|
||||
$template->assign_vars($avatar_helper->get_template_vars($avatar));
|
||||
|
||||
$template->assign_vars(array(
|
||||
'ERROR' => (count($error)) ? implode('<br />', $error) : '',
|
||||
'AVATAR' => $avatar['html'],
|
||||
'AVATAR_LAZY' => $avatar['lazy'],
|
||||
'AVATAR_SOURCE' => $avatar['src'],
|
||||
'AVATAR_TITLE' => $avatar['title'],
|
||||
'AVATAR_TYPE' => $avatar['type'],
|
||||
'AVATAR_WIDTH' => $avatar['width'],
|
||||
'AVATAR_HEIGHT' => $avatar['height'],
|
||||
'ERROR' => !empty($error) ? implode('<br />', $error) : '',
|
||||
|
||||
'S_FORM_ENCTYPE' => ' enctype="multipart/form-data"',
|
||||
|
||||
|
Reference in New Issue
Block a user