do not try to load plugins which aren't directories

This commit is contained in:
Andrew Dolgov 2013-04-16 20:20:38 +04:00
parent 4e53956add
commit b8c7f8357d

View file

@ -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])) {