summaryrefslogtreecommitdiffstats
path: root/modules/context
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-08-17 16:10:07 -0700
committerUnknwon <u@gogs.io>2016-08-17 16:10:07 -0700
commitec332cf903354f8ab291ea33962d244a879c330d (patch)
tree17ad5b632b022ecd840fc140dabbd904b762ff4e /modules/context
parent2c5411b00cc376e6e4307ebbe47fed4bbfafddb2 (diff)
downloadgitea-ec332cf903354f8ab291ea33962d244a879c330d.tar.gz
gitea-ec332cf903354f8ab291ea33962d244a879c330d.zip
Minor naming improvement
Diffstat (limited to 'modules/context')
-rw-r--r--modules/context/auth.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/context/auth.go b/modules/context/auth.go
index bc19467d44..746771791e 100644
--- a/modules/context/auth.go
+++ b/modules/context/auth.go
@@ -37,8 +37,8 @@ func Toggle(options *ToggleOptions) macaron.Handler {
}
// Check non-logged users landing page.
- if !ctx.IsSigned && ctx.Req.RequestURI == "/" && setting.LandingPageUrl != setting.LANDING_PAGE_HOME {
- ctx.Redirect(setting.AppSubUrl + string(setting.LandingPageUrl))
+ if !ctx.IsSigned && ctx.Req.RequestURI == "/" && setting.LandingPageURL != setting.LANDING_PAGE_HOME {
+ ctx.Redirect(setting.AppSubUrl + string(setting.LandingPageURL))
return
}