From: Andrew Dolgov Date: Wed, 17 Apr 2013 08:36:27 +0000 (+0400) Subject: another take on inclusion of errorhandler in CLI scripts X-Git-Tag: 1.7.9~25^2~168^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;ds=sidebyside;h=0186be6aebc6479fb0164dd76a0f37919f4819fe;p=tt-rss.git another take on inclusion of errorhandler in CLI scripts --- diff --git a/update.php b/update.php index 23e42a05..d8b95694 100755 --- a/update.php +++ b/update.php @@ -88,6 +88,10 @@ return; } + if (!isset($options['daemon'])) { + require_once "errorhandler.php"; + } + if (!isset($options['update-schema'])) { $schema_version = get_schema_version($link); diff --git a/update_daemon2.php b/update_daemon2.php index 5a033d9b..bf676120 100755 --- a/update_daemon2.php +++ b/update_daemon2.php @@ -256,6 +256,8 @@ if (!init_connection($link)) return; + require_once "errorhandler.php"; + // We disable stamp file, since it is of no use in a multiprocess update. // not really, tho for the time being -fox if (!make_stampfile('update_daemon.stamp')) {