From e7d8fadb083451c632af43de862eab88adb5b29a Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 1 May 2014 21:30:04 -0400 Subject: Add disable gravatar option --- modules/base/conf.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/base/conf.go b/modules/base/conf.go index eab83d20..126fd63d 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() -- cgit v1.2.3