From 8640dc3c05e50d76962db0cf5f19a1f539736214 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Thu, 1 May 2014 20:29:29 +0200 Subject: [PATCH] improved isPluginClass check --- application/core/Plugins/PluginManager.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/application/core/Plugins/PluginManager.php b/application/core/Plugins/PluginManager.php index 7bf4c619..66a66d29 100644 --- a/application/core/Plugins/PluginManager.php +++ b/application/core/Plugins/PluginManager.php @@ -94,7 +94,10 @@ class PluginManager { */ public static function isPluginClass($pluginClass) { $pluginClass = self::getPluginClass($pluginClass); - if (!in_array(Plugin::PLUGIN_INTERFACE, class_implements($pluginClass))) { + if (!class_exists($pluginClass, false)) { + return false; + } + if (!in_array(Plugin::PLUGIN_INTERFACE, class_implements($pluginClass, false))) { return false; } return true;