From 3b52cea8110541e1e5d8cb06198c11a2ed074b1c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 8 Feb 2021 16:14:48 +0300 Subject: move some old-style handlers to new callback ones --- classes/diskcache.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'classes/diskcache.php') diff --git a/classes/diskcache.php b/classes/diskcache.php index dcd7791d8..3fd099d3c 100644 --- a/classes/diskcache.php +++ b/classes/diskcache.php @@ -399,9 +399,8 @@ class DiskCache { $tmppluginhost->load(PLUGINS, PluginHost::KIND_SYSTEM); //$tmppluginhost->load_data(); - foreach ($tmppluginhost->get_hooks(PluginHost::HOOK_SEND_LOCAL_FILE) as $plugin) { - if ($plugin->hook_send_local_file($filename)) return true; - } + if ($tmppluginhost->run_hooks_until(PluginHost::HOOK_SEND_LOCAL_FILE, true, $filename)) + return true; header("Content-type: $mimetype"); -- cgit v1.2.3-54-g00ecf