1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 17:56:34 +00:00

pass feed it to feed_fetched and fetch_feed hooks

This commit is contained in:
Andrew Dolgov
2013-05-20 15:28:56 +04:00
parent ee65bef405
commit 6791af0cfd

View File

@@ -275,7 +275,7 @@
if (!$rss) { if (!$rss) {
foreach ($pluginhost->get_hooks(PluginHost::HOOK_FETCH_FEED) as $plugin) { foreach ($pluginhost->get_hooks(PluginHost::HOOK_FETCH_FEED) as $plugin) {
$feed_data = $plugin->hook_fetch_feed($feed_data, $fetch_url, $owner_uid); $feed_data = $plugin->hook_fetch_feed($feed_data, $fetch_url, $owner_uid, $feed);
} }
if (!$feed_data) { if (!$feed_data) {
@@ -342,7 +342,7 @@
} }
foreach ($pluginhost->get_hooks(PluginHost::HOOK_FEED_FETCHED) as $plugin) { foreach ($pluginhost->get_hooks(PluginHost::HOOK_FEED_FETCHED) as $plugin) {
$feed_data = $plugin->hook_feed_fetched($feed_data, $fetch_url, $owner_uid); $feed_data = $plugin->hook_feed_fetched($feed_data, $fetch_url, $owner_uid, $feed);
} }
// set last update to now so if anything *simplepie* crashes later we won't be // set last update to now so if anything *simplepie* crashes later we won't be