mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 17:57:29 +00:00
move some old-style handlers to new callback ones
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user