mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[feature/avatars] Implement better treatment of avatar errors
PHPBB3-10018
This commit is contained in:
@@ -679,16 +679,16 @@ class ucp_groups
|
||||
|
||||
// Merge any avatars errors into the primary error array
|
||||
// Drivers use lang constants, so we need to map to the actual strings
|
||||
foreach ($avatar_error as $e)
|
||||
foreach ($avatar_error as $lang)
|
||||
{
|
||||
if (is_array($e))
|
||||
if (is_array($lang))
|
||||
{
|
||||
$key = array_shift($e);
|
||||
$error[] = vsprintf($user->lang($key), $e);
|
||||
$key = array_shift($lang);
|
||||
$error[] = vsprintf($user->lang($key), $lang);
|
||||
}
|
||||
else
|
||||
{
|
||||
$error[] = $user->lang((string) $e);
|
||||
$error[] = $user->lang("$lang");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user