From ec332cf903354f8ab291ea33962d244a879c330d Mon Sep 17 00:00:00 2001 From: Unknwon Date: Wed, 17 Aug 2016 16:10:07 -0700 Subject: Minor naming improvement --- modules/context/auth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/context') diff --git a/modules/context/auth.go b/modules/context/auth.go index bc19467d..74677179 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 } -- cgit v1.2.3