Mercurial > kallithea
diff rhodecode/lib/helpers.py @ 1629:2196aa27954b beta
implements #293 gravatar link should be disabled when use_gravatar = false
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 31 Oct 2011 23:10:11 +0200 |
parents | cbc2b1913cdf |
children | 833f9dec0a06 |
line wrap: on
line diff
--- a/rhodecode/lib/helpers.py Mon Oct 31 21:42:41 2011 +0200 +++ b/rhodecode/lib/helpers.py Mon Oct 31 23:10:11 2011 +0200 @@ -454,9 +454,8 @@ #============================================================================== def gravatar_url(email_address, size=30): - if not str2bool(config['app_conf'].get('use_gravatar')) or \ - not email_address or \ - email_address == 'anonymous@rhodecode.org': + if (not str2bool(config['app_conf'].get('use_gravatar')) or + not email_address or email_address == 'anonymous@rhodecode.org'): return url("/images/user%s.png" % size) ssl_enabled = 'https' == request.environ.get('wsgi.url_scheme')