aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/ucp_profile.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/ucp/ucp_profile.php')
-rw-r--r--phpBB/includes/ucp/ucp_profile.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/phpBB/includes/ucp/ucp_profile.php b/phpBB/includes/ucp/ucp_profile.php
index 88820beac1..c05105eaff 100644
--- a/phpBB/includes/ucp/ucp_profile.php
+++ b/phpBB/includes/ucp/ucp_profile.php
@@ -656,18 +656,16 @@ class ucp_profile
}
// Replace "error" strings with their real, localised form
- $err = $error;
- $error = array();
- foreach ($err as $e)
+ foreach ($error as $key => $lang)
{
- if (is_array($e))
+ if (is_array($lang))
{
- $key = array_shift($e);
- $error[] = vsprintf($user->lang($key), $e);
+ $key = array_shift($lang);
+ $error[$key] = vsprintf($user->lang($key), $lang);
}
else
{
- $error[] = $user->lang((string) $e);
+ $error[$key] = $user->lang("$lang");
}
}