Skip to content
Snippets Groups Projects
Commit e13f9abb authored by Alex Barth's avatar Alex Barth
Browse files

Fix accidental roll back of previous commit 'Stop PubSubHubbub from...

Fix accidental roll back of previous commit 'Stop PubSubHubbub from subscribing if it is not enabled.'
parent 96ec6459
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@
Feeds 6.x 1.0 xxxxx xx, 2010-xx-xx
----------------------------------
- alex_b: Stop PubSubHubbub from subscribing if it is not enabled.
- #711664 neclimdul: guarantee compatibility with CTools 1.4 by declaring that
Feeds uses hooks to define plugins via hook_ctools_plugin_plugins().
- #718460 jerdavis: In FeedsNodeProcessor, clear items only for the current
......
......@@ -138,14 +138,18 @@ class FeedsHTTPFetcher extends FeedsFetcher {
* Override sourceSave() - subscribe to hub.
*/
public function sourceSave(FeedsSource $source) {
$this->subscribe($source);
if ($this->config['use_pubsubhubbub']) {
$this->subscribe($source);
}
}
/**
* Override sourceDelete() - unsubscribe from hub.
*/
public function sourceDelete(FeedsSource $source) {
$this->unsubscribe($source);
if ($this->config['use_pubsubhubbub']) {
$this->unsubscribe($source);
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment