diff options
author | Andrew Dolgov <[email protected]> | 2021-02-08 14:24:45 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-08 14:24:45 +0300 |
commit | 1eb1629d9e55519f03b67b6acf3a046d356e73ec (patch) | |
tree | a202a435626cd7887f049898fc3a50fda09268da /update.php | |
parent | 20b56b5b237a68d69218fea7fd9a8d1a4d1f2a0f (diff) |
pluginhost: rework run_hooks() to be shorter, add callback variant; implement exception handling for both
Diffstat (limited to 'update.php')
-rwxr-xr-x | update.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/update.php b/update.php index e708aad71..d8c648e69 100755 --- a/update.php +++ b/update.php @@ -216,7 +216,7 @@ RSSUtils::update_daemon_common(DAEMON_FEED_LIMIT, $options); RSSUtils::housekeeping_common(); - PluginHost::getInstance()->run_hooks(PluginHost::HOOK_UPDATE_TASK, "hook_update_task", $options); + PluginHost::getInstance()->run_hooks(PluginHost::HOOK_UPDATE_TASK, $options); } if (isset($options["daemon"])) { @@ -261,7 +261,7 @@ if (!isset($options["pidlock"]) || $options["task"] == 0) RSSUtils::housekeeping_common(); - PluginHost::getInstance()->run_hooks(PluginHost::HOOK_UPDATE_TASK, "hook_update_task", $options); + PluginHost::getInstance()->run_hooks(PluginHost::HOOK_UPDATE_TASK, $options); } if (isset($options["cleanup-tags"])) { |