From: Andrew Dolgov Date: Tue, 16 Apr 2013 16:20:38 +0000 (+0400) Subject: do not try to load plugins which aren't directories X-Git-Tag: 1.7.9~25^2~198 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=b8c7f8357d4858ec1bf42bd8c990413ce75dd080;p=tt-rss.git do not try to load plugins which aren't directories --- 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])) {