do not try to load plugins which aren't directories
This commit is contained in:
parent
4e53956add
commit
b8c7f8357d
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue