diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/template/template.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/template/template.go b/modules/template/template.go index 8d602760ad..37c7d79351 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 |