aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorCesar G <prototech91@gmail.com>2013-10-17 21:29:02 -0700
committerCesar G <prototech91@gmail.com>2013-10-17 21:29:02 -0700
commitc7b88ee1d151772df5d537baf2a993eef15a2158 (patch)
tree613a1a576d48d5cd9738088d39cbd04e09fb9247 /phpBB
parent852b707b48cef513318d52db1d2a5f40621636d6 (diff)
downloadforums-c7b88ee1d151772df5d537baf2a993eef15a2158.tar
forums-c7b88ee1d151772df5d537baf2a993eef15a2158.tar.gz
forums-c7b88ee1d151772df5d537baf2a993eef15a2158.tar.bz2
forums-c7b88ee1d151772df5d537baf2a993eef15a2158.tar.xz
forums-c7b88ee1d151772df5d537baf2a993eef15a2158.zip
[ticket/11923] Attempt to translate errors only if user can change avatar.
PHPBB3-11923
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/ucp/ucp_profile.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/ucp/ucp_profile.php b/phpBB/includes/ucp/ucp_profile.php
index 8ae7acaa11..3f58ce20b4 100644
--- a/phpBB/includes/ucp/ucp_profile.php
+++ b/phpBB/includes/ucp/ucp_profile.php
@@ -658,10 +658,10 @@ class ucp_profile
));
}
}
- }
- // Replace "error" strings with their real, localised form
- $error = $phpbb_avatar_manager->localize_errors($user, $error);
+ // Replace "error" strings with their real, localised form
+ $error = $phpbb_avatar_manager->localize_errors($user, $error);
+ }
$avatar = phpbb_get_user_avatar($user->data, 'USER_AVATAR', true);