another take on inclusion of errorhandler in CLI scripts
This commit is contained in:
parent
d1bfb86f9d
commit
0186be6aeb
2 changed files with 6 additions and 0 deletions
|
@ -88,6 +88,10 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isset($options['daemon'])) {
|
||||||
|
require_once "errorhandler.php";
|
||||||
|
}
|
||||||
|
|
||||||
if (!isset($options['update-schema'])) {
|
if (!isset($options['update-schema'])) {
|
||||||
$schema_version = get_schema_version($link);
|
$schema_version = get_schema_version($link);
|
||||||
|
|
||||||
|
|
|
@ -256,6 +256,8 @@
|
||||||
|
|
||||||
if (!init_connection($link)) return;
|
if (!init_connection($link)) return;
|
||||||
|
|
||||||
|
require_once "errorhandler.php";
|
||||||
|
|
||||||
// We disable stamp file, since it is of no use in a multiprocess update.
|
// We disable stamp file, since it is of no use in a multiprocess update.
|
||||||
// not really, tho for the time being -fox
|
// not really, tho for the time being -fox
|
||||||
if (!make_stampfile('update_daemon.stamp')) {
|
if (!make_stampfile('update_daemon.stamp')) {
|
||||||
|
|
Loading…
Reference in a new issue