]> git.wh0rd.org Git - tt-rss.git/commitdiff
another take on inclusion of errorhandler in CLI scripts
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 17 Apr 2013 08:36:27 +0000 (12:36 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 17 Apr 2013 08:36:27 +0000 (12:36 +0400)
update.php
update_daemon2.php

index 23e42a052421c70604ac8f75cbe008b0bef5fa18..d8b956942dd92459c28ff89681b02212ae396b44 100755 (executable)
                return;
        }
 
+       if (!isset($options['daemon'])) {
+               require_once "errorhandler.php";
+       }
+
        if (!isset($options['update-schema'])) {
                $schema_version = get_schema_version($link);
 
index 5a033d9bb3fccf20300d55e621cd63b57e2aa307..bf6761205c96a00a273a9218459236a6e95643a6 100755 (executable)
 
                                        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')) {