diff options
author | Unknwon <u@gogs.io> | 2016-08-17 16:10:07 -0700 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-08-17 16:10:07 -0700 |
commit | ec332cf903354f8ab291ea33962d244a879c330d (patch) | |
tree | 17ad5b632b022ecd840fc140dabbd904b762ff4e /modules/setting/setting.go | |
parent | 2c5411b00cc376e6e4307ebbe47fed4bbfafddb2 (diff) |
Minor naming improvement
Diffstat (limited to 'modules/setting/setting.go')
-rw-r--r-- | modules/setting/setting.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index fe9c8549..1128e08e 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -46,7 +46,7 @@ const ( ) var ( - // Build information + // Build information should only be set by -ldflags. BuildTime string BuildGitHash string @@ -69,7 +69,7 @@ var ( CertFile, KeyFile string StaticRootPath string EnableGzip bool - LandingPageUrl LandingPage + LandingPageURL LandingPage UnixSocketPermission uint32 SSH struct { @@ -258,6 +258,7 @@ var ( HasRobotsTxt bool ) +// DateLang transforms standard language locale name to corresponding value in datetime plugin. func DateLang(lang string) string { name, ok := dateLangs[lang] if ok { @@ -407,9 +408,9 @@ func NewContext() { switch sec.Key("LANDING_PAGE").MustString("home") { case "explore": - LandingPageUrl = LANDING_PAGE_EXPLORE + LandingPageURL = LANDING_PAGE_EXPLORE default: - LandingPageUrl = LANDING_PAGE_HOME + LandingPageURL = LANDING_PAGE_HOME } SSH.RootPath = path.Join(homeDir, ".ssh") |