From 01465325b48270e5eee5db94c6178ba6d567ddf7 Mon Sep 17 00:00:00 2001 From: wltb Date: Sat, 17 May 2014 17:51:35 +0200 Subject: Add subscribe hook, give more information to fetch_feed hook --- include/functions.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/functions.php') diff --git a/include/functions.php b/include/functions.php index 01d8d47f8..2e76f157b 100644 --- a/include/functions.php +++ b/include/functions.php @@ -1687,6 +1687,10 @@ return array("code" => 5, "message" => $fetch_last_error); } + foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_SUBSCRIBE_FEED) as $plugin) { + $contents = $plugin->hook_subscribe_feed($contents, $url, $auth_login, $auth_pass); + } + if (is_html($contents)) { $feedUrls = get_feeds_from_html($url, $contents); -- cgit v1.2.3