diff options
author | Unknwon <u@gogs.io> | 2015-08-02 11:36:18 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-02 11:36:18 +0800 |
commit | cc0d963f75593cb37a84077408b0bd2abdc6e29b (patch) | |
tree | 8fd7da5b2deca681cd8ac23fae25715fd897a365 /cmd | |
parent | 03011e31fe3afebeca78ccd31a891cbba69f06d5 (diff) | |
download | gitea-cc0d963f75593cb37a84077408b0bd2abdc6e29b.tar.gz gitea-cc0d963f75593cb37a84077408b0bd2abdc6e29b.zip |
fix check template version
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/web.go b/cmd/web.go index 8a566451ea..dfad0a3580 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) } |