From 404ee967ebe32973efee18f696d47fef5c1d8b16 Mon Sep 17 00:00:00 2001
From: Alex Barth <alex_b@53995.no-reply.drupal.org>
Date: Sat, 27 Feb 2010 02:02:11 +0000
Subject: [PATCH] Stop PubsubHubbub from subscribing if it is not enabled.

---
 CHANGELOG.txt                | 1 -
 plugins/FeedsHTTPFetcher.inc | 8 ++------
 2 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 8f0ba1c7..d318b08c 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -4,7 +4,6 @@
 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
diff --git a/plugins/FeedsHTTPFetcher.inc b/plugins/FeedsHTTPFetcher.inc
index d8f724e2..5d6f0d22 100644
--- a/plugins/FeedsHTTPFetcher.inc
+++ b/plugins/FeedsHTTPFetcher.inc
@@ -138,18 +138,14 @@ class FeedsHTTPFetcher extends FeedsFetcher {
    * Override sourceSave() - subscribe to hub.
    */
   public function sourceSave(FeedsSource $source) {
-    if ($this->config['use_pubsubhubbub']) {
-      $this->subscribe($source);
-    }
+    $this->subscribe($source);
   }
 
   /**
    * Override sourceDelete() - unsubscribe from hub.
    */
   public function sourceDelete(FeedsSource $source) {
-    if ($this->config['use_pubsubhubbub']) {
-      $this->unsubscribe($source);
-    }
+    $this->unsubscribe($source);
   }
 
   /**
-- 
GitLab