mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-13 20:24:08 +02:00
[feature/avatars] Implement better treatment of avatar errors
PHPBB3-10018
This commit is contained in:
@@ -559,16 +559,16 @@ class acp_groups
|
||||
* Merge any avatar errors into the primary error array
|
||||
* Drivers use language 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("$e");
|
||||
$error[] = $user->lang("$lang");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user