improved isPluginClass check

This commit is contained in:
Steffen Schröder 2014-05-01 20:29:29 +02:00
parent 509251c5f7
commit 8640dc3c05

View File

@ -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;