Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
feeds
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
feeds
Commits
11e0e082
Commit
11e0e082
authored
15 years ago
by
Alex Barth
Browse files
Options
Downloads
Patches
Plain Diff
Stop PubsubHubbub from subscribing if it is not enabled.
parent
0619a600
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.txt
+1
-0
1 addition, 0 deletions
CHANGELOG.txt
plugins/FeedsHTTPFetcher.inc
+6
-2
6 additions, 2 deletions
plugins/FeedsHTTPFetcher.inc
with
7 additions
and
2 deletions
CHANGELOG.txt
+
1
−
0
View file @
11e0e082
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
plugins/FeedsHTTPFetcher.inc
+
6
−
2
View file @
11e0e082
...
@@ -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
);
}
}
}
/**
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment