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
893f9648
Commit
893f9648
authored
14 years ago
by
Alex Barth
Browse files
Options
Downloads
Patches
Plain Diff
#836090 andrewlevine, alex_b: Include mapping configuration in hash.
parent
e777262d
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/FeedsNodeProcessor.inc
+10
-2
10 additions, 2 deletions
plugins/FeedsNodeProcessor.inc
with
11 additions
and
2 deletions
CHANGELOG.txt
+
1
−
0
View file @
893f9648
...
...
@@ -3,6 +3,7 @@
Feeds 6.x 1.0 XXXXXXXXXXXXXXXXXX
--------------------------------
- #836090 andrewlevine, alex_b: Include mapping configuration in hash.
- #853156 alex_b: Support real updates of terms.
- #858684 alex_b: Fix notices when file not found.
...
...
This diff is collapsed.
Click to expand it.
plugins/FeedsNodeProcessor.inc
+
10
−
2
View file @
893f9648
...
...
@@ -361,13 +361,21 @@ class FeedsNodeProcessor extends FeedsProcessor {
}
/**
* Create MD5 hash of $item array.
* Create MD5 hash of item and mappings array.
*
* Include mappings as a change in mappings may have an affect on the item
* produced.
*
* @return Always returns a hash, even with empty, NULL, FALSE:
* Empty arrays return 40cd750bba9870f18aada2478b24840a
* Empty/NULL/FALSE strings return d41d8cd98f00b204e9800998ecf8427e
*/
protected
function
hash
(
$item
)
{
return
hash
(
'md5'
,
serialize
(
$item
));
static
$serialized_mappings
;
if
(
!
$serialized_mappings
)
{
$serialized_mappings
=
serialize
(
$this
->
config
[
'mappings'
]);
}
return
hash
(
'md5'
,
serialize
(
$item
)
.
$serialized_mappings
);
}
/**
...
...
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