From b2fb7e3fd27f360e65ee60b93cad7d5d9832f818 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 22 Nov 2015 13:01:42 -0500 Subject: more HTTP clone word fix --- modules/template/template.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/template') diff --git a/modules/template/template.go b/modules/template/template.go index 8d602760..37c7d793 100644 --- a/modules/template/template.go +++ b/modules/template/template.go @@ -25,8 +25,8 @@ var Funcs template.FuncMap = map[string]interface{}{ "GoVer": func() string { return strings.Title(runtime.Version()) }, - "Protocol": func() string { - return string(setting.Protocol) + "UseHTTPS": func() bool { + return strings.HasPrefix(setting.AppUrl, "https") }, "AppName": func() string { return setting.AppName -- cgit v1.2.3