From cc0d963f75593cb37a84077408b0bd2abdc6e29b Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 2 Aug 2015 11:36:18 +0800 Subject: fix check template version --- cmd/web.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/web.go') diff --git a/cmd/web.go b/cmd/web.go index 8a566451..dfad0a35 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -69,7 +69,7 @@ type VerChecker struct { // checkVersion checks if binary matches the version of templates files. func checkVersion() { // Templates. - data, err := ioutil.ReadFile(path.Join(setting.StaticRootPath, "templates/.VERSION")) + data, err := ioutil.ReadFile(setting.StaticRootPath + "/templates/.VERSION") if err != nil { log.Fatal(4, "Fail to read 'templates/.VERSION': %v", err) } -- cgit v1.2.3