]> git.wh0rd.org Git - tt-rss.git/commitdiff
pass feed it to feed_fetched and fetch_feed hooks
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 20 May 2013 11:28:56 +0000 (15:28 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 20 May 2013 11:28:56 +0000 (15:28 +0400)
include/rssfuncs.php

index 217bc2bf3ae792e12c454599b8751b4e55fa88d4..4c3e861237349a105af107e21225c25f868a9a06 100644 (file)
                if (!$rss) {
 
                        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) {
                }
 
                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