Commit 1545562a authored by anon's avatar anon

Fixed #2116273: Fatal error: Class 'LinkitSearchPluginEntity' during Drupal Installation.

parent 65d144a0
......@@ -72,6 +72,12 @@ function linkit_entity_ctools_linkit_get_children($plugin, $parent) {
// Test the plugins.
foreach ($plugins as $plugin_name => $plugin) {
// In some cases the plugins isn't auto loaded. Ctools handle this for us.
// This is typical when installing Linkit.
if (!class_exists($plugin['handler']['class'])) {
continue;
}
$tested_plugin = new $plugin['handler']['class']($plugin, new LinkitProfile());
if (isset($tested_plugin->unusable) && $tested_plugin->unusable) {
unset($plugins[$plugin_name]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment