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/context/auth.go | |
parent | 2c5411b00cc376e6e4307ebbe47fed4bbfafddb2 (diff) | |
download | gitea-ec332cf903354f8ab291ea33962d244a879c330d.tar.gz gitea-ec332cf903354f8ab291ea33962d244a879c330d.zip |
Minor naming improvement
Diffstat (limited to 'modules/context/auth.go')
-rw-r--r-- | modules/context/auth.go | 4 |
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 } |