diff options
author | Andrew Dolgov <[email protected]> | 2017-12-11 12:54:30 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-12-11 12:54:30 +0300 |
commit | f70d456a5bc509e56991195a2f003cf2714d0e13 (patch) | |
tree | aec8ed67626819920d6744fd87020552a1509ade /classes/pref | |
parent | 930691876762e8149724993e2de7a80648442615 (diff) | |
parent | c463a95dca0a5f2fbcdc1b67fd97f8c1159523f5 (diff) |
Merge branch 'master' of git.tt-rss.org:git/tt-rss into pdo-experimental
Diffstat (limited to 'classes/pref')
-rw-r--r--[-rwxr-xr-x] | classes/pref/feeds.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php index 0b5a445f3..846e814ee 100755..100644 --- a/classes/pref/feeds.php +++ b/classes/pref/feeds.php @@ -1554,6 +1554,14 @@ class Pref_Feeds extends Handler_Protected { } static function remove_feed($id, $owner_uid) { + $debug = isset($_REQUEST["debug"]); + + foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_UNSUBSCRIBE_FEED) as $p) { + if( ! $p->hook_unsubscribe_feed($id, $owner_uid)){ + if($debug) _debug("Feed not removed due to Error in Plugin. (HOOK_UNSUBSCRIBE_FEED)"); + return; + } + } $pdo = Db::pdo(); @@ -1780,4 +1788,4 @@ class Pref_Feeds extends Handler_Protected { return $url_path; } -}
\ No newline at end of file +} |