diff options
| author | Andrew Dolgov <gothfox@users.noreply.github.com> | 2014-05-19 16:36:15 +0400 |
|---|---|---|
| committer | Andrew Dolgov <gothfox@users.noreply.github.com> | 2014-05-19 16:36:15 +0400 |
| commit | ddc9f12e89265b2e379b3ee9ddf601ba645a438e (patch) | |
| tree | 04818e173e3c5b7ebf26aba9c6472550f1170f1a /include/functions.php | |
| parent | a283bf26438199e415fcebb2ee0b8b72b0db51cf (diff) | |
| parent | 01465325b48270e5eee5db94c6178ba6d567ddf7 (diff) | |
Merge pull request #375 from wltb/hooks
Add subscribe hook, give more information to fetch_feed hook
Diffstat (limited to 'include/functions.php')
| -rw-r--r-- | include/functions.php | 4 |
1 files changed, 4 insertions, 0 deletions
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); |