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

Stop PubsubHubbub from subscribing if it is not enabled.

parent 0619a600
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
Feeds 6.x 1.0 xxxxx xx, 2010-xx-xx 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 - #711664 neclimdul: guarantee compatibility with CTools 1.4 by declaring that
Feeds uses hooks to define plugins via hook_ctools_plugin_plugins(). Feeds uses hooks to define plugins via hook_ctools_plugin_plugins().
- #718460 jerdavis: In FeedsNodeProcessor, clear items only for the current - #718460 jerdavis: In FeedsNodeProcessor, clear items only for the current
......
...@@ -138,14 +138,18 @@ class FeedsHTTPFetcher extends FeedsFetcher { ...@@ -138,14 +138,18 @@ class FeedsHTTPFetcher extends FeedsFetcher {
* Override sourceSave() - subscribe to hub. * Override sourceSave() - subscribe to hub.
*/ */
public function sourceSave(FeedsSource $source) { public function sourceSave(FeedsSource $source) {
$this->subscribe($source); if ($this->config['use_pubsubhubbub']) {
$this->subscribe($source);
}
} }
/** /**
* Override sourceDelete() - unsubscribe from hub. * Override sourceDelete() - unsubscribe from hub.
*/ */
public function sourceDelete(FeedsSource $source) { 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