1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 06:35:55 +00:00

pluginhost: load plugin data automatically (also marks load_data method as private)

This commit is contained in:
Andrew Dolgov
2021-01-15 08:32:06 +03:00
parent f67f0f864b
commit 40f38fc87f
7 changed files with 18 additions and 11 deletions

View File

@@ -395,7 +395,7 @@ class DiskCache {
$tmppluginhost = new PluginHost();
$tmppluginhost->load(PLUGINS, PluginHost::KIND_SYSTEM);
$tmppluginhost->load_data();
//$tmppluginhost->load_data();
foreach ($tmppluginhost->get_hooks(PluginHost::HOOK_SEND_LOCAL_FILE) as $plugin) {
if ($plugin->hook_send_local_file($filename)) return true;