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
8b83d35e
Commit
8b83d35e
authored
14 years ago
by
Tristan O\'Neil
Browse files
Options
Downloads
Patches
Plain Diff
Fixed PHP 5.3 FeedsImporter::copy function must be compatible bug.
parent
985975b4
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
-1
1 addition, 1 deletion
CHANGELOG.txt
includes/FeedsImporter.inc
+11
-9
11 additions, 9 deletions
includes/FeedsImporter.inc
with
12 additions
and
10 deletions
CHANGELOG.txt
+
1
−
1
View file @
8b83d35e
...
...
@@ -2,7 +2,7 @@
Feeds 7.x 2.0 XXXXXXXXXXXXXXXXXXX
---------------------------------
- #940866 tristanoneil: PHP 5.3 FeedsImporter::copy function must be compatible.
- #944986 tristanoneil: Link Mapper Upgrade.
- #959066 tristanoneil: Remove old mappers and tests.
- #883342 Steven Jones: Don't force usage of cURL.
...
...
This diff is collapsed.
Click to expand it.
includes/FeedsImporter.inc
+
11
−
9
View file @
8b83d35e
...
...
@@ -197,16 +197,18 @@ class FeedsImporter extends FeedsConfigurable {
* @param FeedsImporter $importer
* The feeds importer object to copy from.
*/
public
function
copy
(
Feeds
Importer
$importer
)
{
$this
->
setConfig
(
$importer
->
config
);
public
function
copy
(
Feeds
Configurable
$configurable
)
{
parent
::
copy
(
$configurable
);
// Instantiate new fetcher, parser and processor and initialize their
// configurations.
foreach
(
$this
->
plugin_types
as
$plugin_type
)
{
$this
->
setPlugin
(
$importer
->
config
[
$plugin_type
][
'plugin_key'
]);
$this
->
$plugin_type
->
setConfig
(
$importer
->
config
[
$plugin_type
][
'config'
]);
}
}
if
(
$configurable
instanceof
FeedsImporter
)
{
// Instantiate new fetcher, parser and processor and initialize their
// configurations.
foreach
(
$this
->
plugin_types
as
$plugin_type
)
{
$this
->
setPlugin
(
$importer
->
config
[
$plugin_type
][
'plugin_key'
]);
$this
->
$plugin_type
->
setConfig
(
$importer
->
config
[
$plugin_type
][
'config'
]);
}
}
}
/**
* Get configuration of this feed.
...
...
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