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 /classes/handler/public.php | |
parent | 20b56b5b237a68d69218fea7fd9a8d1a4d1f2a0f (diff) |
pluginhost: rework run_hooks() to be shorter, add callback variant; implement exception handling for both
Diffstat (limited to 'classes/handler/public.php')
-rwxr-xr-x | classes/handler/public.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php index 67ad9c5cc..79a0d3198 100755 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -490,17 +490,17 @@ class Handler_Public extends Handler { } function updateTask() { - PluginHost::getInstance()->run_hooks(PluginHost::HOOK_UPDATE_TASK, "hook_update_task", false); + PluginHost::getInstance()->run_hooks(PluginHost::HOOK_UPDATE_TASK); } function housekeepingTask() { - PluginHost::getInstance()->run_hooks(PluginHost::HOOK_HOUSE_KEEPING, "hook_house_keeping", false); + PluginHost::getInstance()->run_hooks(PluginHost::HOOK_HOUSE_KEEPING); } function globalUpdateFeeds() { RPC::updaterandomfeed_real(); - PluginHost::getInstance()->run_hooks(PluginHost::HOOK_UPDATE_TASK, "hook_update_task", false); + PluginHost::getInstance()->run_hooks(PluginHost::HOOK_UPDATE_TASK); } function sharepopup() { |