diff options
author | Unknwon <u@gogs.io> | 2015-03-12 20:32:38 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-03-12 20:32:38 -0400 |
commit | b72e75e522dda88dcbf7b064b8af3c495deb0595 (patch) | |
tree | 9f7bcdc89d96b1950e202229ccf97ce6e82a44aa /modules/base/tool.go | |
parent | b668fc7aadb928b86336655e2fa0b37ed4d9733d (diff) | |
download | gitea-b72e75e522dda88dcbf7b064b8af3c495deb0595.tar.gz gitea-b72e75e522dda88dcbf7b064b8af3c495deb0595.zip |
#1024: OFFLINE_MODE Still Uses Gravatar
Diffstat (limited to 'modules/base/tool.go')
-rw-r--r-- | modules/base/tool.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/base/tool.go b/modules/base/tool.go index 55e6dffd96..92f493afe2 100644 --- a/modules/base/tool.go +++ b/modules/base/tool.go @@ -171,7 +171,7 @@ func CreateTimeLimitCode(data string, minutes int, startInf interface{}) string // AvatarLink returns avatar link by given e-mail. func AvatarLink(email string) string { - if setting.DisableGravatar { + if setting.DisableGravatar || setting.OfflineMode { return setting.AppSubUrl + "/img/avatar_default.jpg" } |