diff options
author | Unknown <joe2010xtmf@163.com> | 2014-05-01 21:30:04 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-05-01 21:30:04 -0400 |
commit | e7d8fadb083451c632af43de862eab88adb5b29a (patch) | |
tree | 25e4b39d2c43edcd3aa0b2686c4fede2264c236a /modules/base | |
parent | 3bd5fc6d6f5e1a04acf93929808f982417031e2e (diff) | |
download | gitea-e7d8fadb083451c632af43de862eab88adb5b29a.tar.gz gitea-e7d8fadb083451c632af43de862eab88adb5b29a.zip |
Add disable gravatar option
Diffstat (limited to 'modules/base')
-rw-r--r-- | modules/base/conf.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/base/conf.go b/modules/base/conf.go index eab83d20af..126fd63d2e 100644 --- a/modules/base/conf.go +++ b/modules/base/conf.go @@ -80,7 +80,8 @@ var ( SessionConfig *session.Config SessionManager *session.Manager - PictureService string + PictureService string + DisableGravatar bool EnableRedis bool EnableMemcache bool @@ -345,7 +346,9 @@ func NewConfigContext() { LogInRememberDays = Cfg.MustInt("security", "LOGIN_REMEMBER_DAYS") CookieUserName = Cfg.MustValue("security", "COOKIE_USERNAME") CookieRememberName = Cfg.MustValue("security", "COOKIE_REMEMBER_NAME") + PictureService = Cfg.MustValue("picture", "SERVICE") + DisableGravatar = Cfg.MustBool("picture", "DISABLE_GRAVATAR", false) // Determine and create root git reposiroty path. homeDir, err := com.HomeDir() |