From b8c7f8357d4858ec1bf42bd8c990413ce75dd080 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 16 Apr 2013 20:20:38 +0400 Subject: [PATCH] do not try to load plugins which aren't directories --- classes/pluginhost.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/classes/pluginhost.php b/classes/pluginhost.php index 7c6fab9a..bbfa2ca2 100644 --- a/classes/pluginhost.php +++ b/classes/pluginhost.php @@ -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])) {