From 2bb982dada0012d59ead783aaf90e730351171cc Mon Sep 17 00:00:00 2001 From: Unknwon Date: Mon, 23 Mar 2015 10:19:19 -0400 Subject: #1080: Remove footer ads/branding from default template --- modules/setting/setting.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/setting') diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 790014071b..462e838456 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -130,6 +130,9 @@ var ( // I18n settings. Langs, Names []string + // Other settings. + ShowFooterBranding bool + // Global setting objects. Cfg *ini.File CustomPath string // Custom directory path. @@ -327,6 +330,8 @@ func NewConfigContext() { Langs = Cfg.Section("i18n").Key("LANGS").Strings(",") Names = Cfg.Section("i18n").Key("NAMES").Strings(",") + ShowFooterBranding = Cfg.Section("other").Key("SHOW_FOOTER_BRANDING").MustBool() + HasRobotsTxt = com.IsFile(path.Join(CustomPath, "robots.txt")) } -- cgit v1.2.3