summaryrefslogtreecommitdiffstats
path: root/extensions/Gravatar
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-11-14 06:57:00 +0100
committerByron Jones <bjones@mozilla.com>2013-11-14 06:57:00 +0100
commit3a33309b066d919f8a6e2d312b538e556894b079 (patch)
tree028625c7e0dfc9044e967d391de2d82500c973dc /extensions/Gravatar
parentf0b87357bf6dbd419ae137b4d3c395125b3a740c (diff)
downloadbugzilla-3a33309b066d919f8a6e2d312b538e556894b079.tar.gz
bugzilla-3a33309b066d919f8a6e2d312b538e556894b079.tar.xz
Bug 935871: Don't show email address without logged in
Diffstat (limited to 'extensions/Gravatar')
-rw-r--r--extensions/Gravatar/template/en/default/hook/bug/comments-user-image.html.tmpl6
1 files changed, 5 insertions, 1 deletions
diff --git a/extensions/Gravatar/template/en/default/hook/bug/comments-user-image.html.tmpl b/extensions/Gravatar/template/en/default/hook/bug/comments-user-image.html.tmpl
index 6faed368d..66714748b 100644
--- a/extensions/Gravatar/template/en/default/hook/bug/comments-user-image.html.tmpl
+++ b/extensions/Gravatar/template/en/default/hook/bug/comments-user-image.html.tmpl
@@ -8,7 +8,11 @@
[% IF user.settings.show_gravatars.value == 'On' %]
[% IF who.last_activity_ts %]
- <a href="user_profile?login=[% who.login FILTER uri %]">
+ [% IF user.id %]
+ <a href="user_profile?login=[% who.login FILTER uri %]">
+ [% ELSE %]
+ <a href="user_profile?user_id=[% who.id FILTER uri %]">
+ [% END %]
[% END %]
<img align="middle" src="[% who.gravatar FILTER none %]" width="32" height="32" border="0">
[% "</a>" IF who.last_activity_ts %]