Changeset - c33842b1bd38
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 15 years ago 2011-05-12 21:12:18
marcin@python-works.com
Anonymous user shouldn't use gravatar, changed gravatar into regular hosted image.
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/helpers.py
Show inline comments
 
@@ -513,7 +513,8 @@ HasRepoPermissionAny, HasRepoPermissionA
 
#==============================================================================
 

	
 
def gravatar_url(email_address, size=30):
 
    if not str2bool(config['app_conf'].get('use_gravatar')):
 
    if not str2bool(config['app_conf'].get('use_gravatar')) or \
 
        email_address == 'anonymous@rhodecode.org':
 
        return "/images/user%s.png" % size
 

	
 
    ssl_enabled = 'https' == request.environ.get('wsgi.url_scheme')
0 comments (0 inline, 0 general)