aboutsummaryrefslogtreecommitdiffstats
path: root/modules/template/template.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2016-11-27 18:14:25 +0800
committerGitHub <noreply@github.com>2016-11-27 18:14:25 +0800
commit94da47271701401b6959bfd308d6c74fd30b22e2 (patch)
tree92a6c3298ab198efa04fbe4409d282da44736640 /modules/template/template.go
parent0a76d260fa16764ab66bf1623b4cd9e9adfdac27 (diff)
downloadgitea-94da47271701401b6959bfd308d6c74fd30b22e2.tar.gz
gitea-94da47271701401b6959bfd308d6c74fd30b22e2.zip
Golint fixed for modules/setting (#262)
* golint fixed for modules/setting * typo fixed and renamed UNIXSOCKET to UnixSocket
Diffstat (limited to 'modules/template/template.go')
-rw-r--r--modules/template/template.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/template/template.go b/modules/template/template.go
index baf1a7ab92..65d78c2f6e 100644
--- a/modules/template/template.go
+++ b/modules/template/template.go
@@ -33,16 +33,16 @@ func NewFuncMap() []template.FuncMap {
return strings.Title(runtime.Version())
},
"UseHTTPS": func() bool {
- return strings.HasPrefix(setting.AppUrl, "https")
+ return strings.HasPrefix(setting.AppURL, "https")
},
"AppName": func() string {
return setting.AppName
},
"AppSubUrl": func() string {
- return setting.AppSubUrl
+ return setting.AppSubURL
},
"AppUrl": func() string {
- return setting.AppUrl
+ return setting.AppURL
},
"AppVer": func() string {
return setting.AppVer