mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 21:45:56 +00:00
Check return value from Plugins
This commit is contained in:
6
classes/pref/feeds.php
Executable file → Normal file
6
classes/pref/feeds.php
Executable file → Normal file
@@ -1739,9 +1739,13 @@ class Pref_Feeds extends Handler_Protected {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static function remove_feed($id, $owner_uid) {
|
static function remove_feed($id, $owner_uid) {
|
||||||
|
$debug = isset($_REQUEST["debug"]);
|
||||||
|
|
||||||
foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_UNSUBSCRIBE_FEED) as $p) {
|
foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_UNSUBSCRIBE_FEED) as $p) {
|
||||||
$line = $p->hook_unsubscribe_feed($id, $owner_uid);
|
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) {
|
if ($id > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user