From 1eb1629d9e55519f03b67b6acf3a046d356e73ec Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 8 Feb 2021 14:24:45 +0300 Subject: pluginhost: rework run_hooks() to be shorter, add callback variant; implement exception handling for both --- update.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'update.php') 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"])) { -- cgit v1.2.3