1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-14 03:25:37 +02:00

[ticket/11923] Attempt to translate errors only if user can change avatar.

PHPBB3-11923
This commit is contained in:
Cesar G 2013-10-17 21:29:02 -07:00
parent 852b707b48
commit c7b88ee1d1

View File

@ -658,10 +658,10 @@ class ucp_profile
)); ));
} }
} }
}
// Replace "error" strings with their real, localised form // Replace "error" strings with their real, localised form
$error = $phpbb_avatar_manager->localize_errors($user, $error); $error = $phpbb_avatar_manager->localize_errors($user, $error);
}
$avatar = phpbb_get_user_avatar($user->data, 'USER_AVATAR', true); $avatar = phpbb_get_user_avatar($user->data, 'USER_AVATAR', true);