Skip to content
Snippets Groups Projects
Commit b39b5477 authored by Dave Reid's avatar Dave Reid
Browse files

Issue #1161810: Fixed declaration of FeedsSource::instance() should be...

Issue #1161810: Fixed declaration of FeedsSource::instance() should be compatible with that of FeedsConfigurable::instance().
parent fc45a193
No related branches found
No related tags found
No related merge requests found
...@@ -182,7 +182,7 @@ class FeedsSource extends FeedsConfigurable { ...@@ -182,7 +182,7 @@ class FeedsSource extends FeedsConfigurable {
* Instantiate a unique object per class/id/feed_nid. Don't use * Instantiate a unique object per class/id/feed_nid. Don't use
* directly, use feeds_source() instead. * directly, use feeds_source() instead.
*/ */
public static function instance($importer_id, $feed_nid = 0) { public static function instance($importer_id, $feed_nid) {
$class = variable_get('feeds_source_class', 'FeedsSource'); $class = variable_get('feeds_source_class', 'FeedsSource');
static $instances = array(); static $instances = array();
if (!isset($instances[$class][$importer_id][$feed_nid])) { if (!isset($instances[$class][$importer_id][$feed_nid])) {
......
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