diff options
Diffstat (limited to 'modules/setting')
-rw-r--r-- | modules/setting/setting.go | 5 |
1 files changed, 5 insertions, 0 deletions
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")) } |