summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-10-10 06:15:27 -0400
committerUnknwon <joe2010xtmf@163.com>2014-10-10 06:15:27 -0400
commit41dbb4c148cef33984a268e2e891b09fa10b3d94 (patch)
tree4eb5161ee98d226a1cbc66348d1c1b824630776d /cmd
parent85c9f7c5f354838fc8a78977a80f9899b5158897 (diff)
downloadgitea-41dbb4c148cef33984a268e2e891b09fa10b3d94.tar.gz
gitea-41dbb4c148cef33984a268e2e891b09fa10b3d94.zip
Hide org member in collar page
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 77260b7241..395658f6ed 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -64,11 +64,15 @@ func checkVersion() {
// Check dependency version.
macaronVer := git.MustParseVersion(strings.Join(strings.Split(macaron.Version(), ".")[:3], "."))
if macaronVer.LessThan(git.MustParseVersion("0.2.0")) {
- log.Fatal(4, "Macaron version is too old, did you forget to update?(github.com/Unknwon/macaron)")
+ log.Fatal(4, "Package macaron version is too old, did you forget to update?(github.com/Unknwon/macaron)")
}
i18nVer := git.MustParseVersion(i18n.Version())
if i18nVer.LessThan(git.MustParseVersion("0.0.2")) {
- log.Fatal(4, "i18n version is too old, did you forget to update?(github.com/macaron-contrib/i18n)")
+ log.Fatal(4, "Package i18n version is too old, did you forget to update?(github.com/macaron-contrib/i18n)")
+ }
+ sessionVer := git.MustParseVersion(session.Version())
+ if sessionVer.LessThan(git.MustParseVersion("0.0.1")) {
+ log.Fatal(4, "Package session version is too old, did you forget to update?(github.com/macaron-contrib/session)")
}
}