UI: Confirmation box
This commit is contained in:
parent
ad2ab6d214
commit
49193bebd2
19 changed files with 210 additions and 86 deletions
|
@ -50,6 +50,7 @@ and it takes care of all the other things for you`,
|
|||
|
||||
// checkVersion checks if binary matches the version of templates files.
|
||||
func checkVersion() {
|
||||
// Templates.
|
||||
data, err := ioutil.ReadFile(path.Join(setting.StaticRootPath, "templates/.VERSION"))
|
||||
if err != nil {
|
||||
log.Fatal(4, "Fail to read 'templates/.VERSION': %v", err)
|
||||
|
@ -57,6 +58,11 @@ func checkVersion() {
|
|||
if string(data) != setting.AppVer {
|
||||
log.Fatal(4, "Binary and template file version does not match, did you forget to recompile?")
|
||||
}
|
||||
|
||||
// Macaron.
|
||||
if macaron.Version() != "0.1.8.0927" {
|
||||
log.Fatal(4, "Macaron version does not match, did you forget to update?(github.com/Unknwon/macaron)")
|
||||
}
|
||||
}
|
||||
|
||||
// newMacaron initializes Macaron instance.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue