summaryrefslogtreecommitdiff
path: root/classes/pref
diff options
context:
space:
mode:
authorfox <[email protected]>2017-12-11 09:47:04 +0000
committerGogs <[email protected]>2017-12-11 09:47:04 +0000
commitc463a95dca0a5f2fbcdc1b67fd97f8c1159523f5 (patch)
tree1c9d2a02d2839370cbfb84c5d443eddcfc3187bf /classes/pref
parent7c4d7bce3f15afbdab0487e101cd2f85afed8bd5 (diff)
parente58a14de724da8f110525ba4faf5ecf8f006b3f5 (diff)
Merge branch 'master' of dim0x69/tt-rss into master
Diffstat (limited to 'classes/pref')
-rw-r--r--[-rwxr-xr-x]classes/pref/feeds.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php
index a86a1af94..2a9c57e79 100755..100644
--- a/classes/pref/feeds.php
+++ b/classes/pref/feeds.php
@@ -1739,6 +1739,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;
+ }
+ }
if ($id > 0) {
@@ -1969,4 +1977,4 @@ class Pref_Feeds extends Handler_Protected {
return $url_path;
}
-} \ No newline at end of file
+}