do not try to load plugins which aren't directories
This commit is contained in:
parent
4e53956add
commit
b8c7f8357d
|
@ -103,6 +103,9 @@ class PluginHost {
|
|||
foreach ($plugins as $class) {
|
||||
$class = trim($class);
|
||||
$class_file = strtolower(basename($class));
|
||||
|
||||
if (!is_dir(dirname(__FILE__)."/../plugins/$class_file")) continue;
|
||||
|
||||
$file = dirname(__FILE__)."/../plugins/$class_file/init.php";
|
||||
|
||||
if (!isset($this->plugins[$class])) {
|
||||
|
|
Loading…
Reference in New Issue