From a75b733c5a0f4cadd86c825d3ad0ee6226f2f3c6 Mon Sep 17 00:00:00 2001
From: Alex Barth <alex_b@53995.no-reply.drupal.org>
Date: Thu, 12 Nov 2009 23:34:22 +0000
Subject: [PATCH] Load FeedsMissingPlugin handler before instantiating it.

---
 feeds.module | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/feeds.module b/feeds.module
index bcb95361..ca2c1eb4 100644
--- a/feeds.module
+++ b/feeds.module
@@ -611,9 +611,12 @@ function feeds_plugin_instance($plugin, $id) {
   if ($class = ctools_plugin_load_class('feeds', 'plugins', $plugin, 'handler')) {
     return FeedsConfigurable::instance($class, $id);
   }
+
+  // Return FeedsMissingPlugin if no plugin was found.
   // @todo: better error handling.
   drupal_set_message(t('Missing Feeds plugin. Check whether all required libraries and modules are installed properly.'), 'error');
-  return FeedsConfigurable::instance('FeedsMissingPlugin', $id);
+  $class = ctools_plugin_load_class('feeds', 'plugins', 'FeedsMissingPlugin', 'handler');
+  return FeedsConfigurable::instance($class, $id);
 }
 
 /**
-- 
GitLab