projects
/
mtweb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
upgrade 0.11.2 pour XML, MySql et SQLite
[mtweb]
/
mw
/
mw_app.php
diff --git
a/mw/mw_app.php
b/mw/mw_app.php
index
5349b79
..
4355487
100644
(file)
--- a/
mw/mw_app.php
+++ b/
mw/mw_app.php
@@
-46,10
+46,16
@@
return $this->get_error();
}
$env = $this->env();
return $this->get_error();
}
$env = $this->env();
- if(
$env->data_upgrade_required()
){
+ if(
($res = $env->data_upgrade_required()) === true
){
$this->upgrade();
exit;
}
$this->upgrade();
exit;
}
+ else{
+ if($res !== false){
+ $this->error($res);
+ return $this->get_error();
+ }
+ }
return true;
}
return true;
}
@@
-160,7
+166,10
@@
$env->load_versions();
$env->load_config($this->bdd, $this->config);
$env->init();
$env->load_versions();
$env->load_config($this->bdd, $this->config);
$env->init();
- $env->init_data_upgrades();
+ if(($res = $env->init_data_upgrades()) !== true){
+ $this->error("impossible de lire les upgrades. ".$res);
+ return false;
+ }
return true;
}
return true;
}