aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/ucp_profile.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2012-11-25 17:01:21 +0100
committerMarc Alexander <admin@m-a-styles.de>2012-11-25 17:01:21 +0100
commita77fcdb5f93ed291c223c445a46a5641cfdb27ea (patch)
tree1c5e476fd10fc1073b5f5214b034f1597a9fbe12 /phpBB/includes/ucp/ucp_profile.php
parentf8256ed00f5ecc95fbf9f69fd2e8de2a92bccec6 (diff)
downloadforums-a77fcdb5f93ed291c223c445a46a5641cfdb27ea.tar
forums-a77fcdb5f93ed291c223c445a46a5641cfdb27ea.tar.gz
forums-a77fcdb5f93ed291c223c445a46a5641cfdb27ea.tar.bz2
forums-a77fcdb5f93ed291c223c445a46a5641cfdb27ea.tar.xz
forums-a77fcdb5f93ed291c223c445a46a5641cfdb27ea.zip
[feature/avatars] Implement better treatment of avatar errors
PHPBB3-10018
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");
}
}