improved isPluginClass check
This commit is contained in:
parent
509251c5f7
commit
8640dc3c05
@ -94,7 +94,10 @@ class PluginManager {
|
|||||||
*/
|
*/
|
||||||
public static function isPluginClass($pluginClass) {
|
public static function isPluginClass($pluginClass) {
|
||||||
$pluginClass = self::getPluginClass($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 false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user