summaryrefslogtreecommitdiffstats
path: root/modules/base/tool.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-03-12 20:32:38 -0400
committerUnknwon <u@gogs.io>2015-03-12 20:32:38 -0400
commitb72e75e522dda88dcbf7b064b8af3c495deb0595 (patch)
tree9f7bcdc89d96b1950e202229ccf97ce6e82a44aa /modules/base/tool.go
parentb668fc7aadb928b86336655e2fa0b37ed4d9733d (diff)
downloadgitea-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.go2
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"
}