]> git.wh0rd.org Git - tt-rss.git/commitdiff
do not try to load plugins which aren't directories
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 16 Apr 2013 16:20:38 +0000 (20:20 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 16 Apr 2013 16:20:40 +0000 (20:20 +0400)
classes/pluginhost.php

index 7c6fab9a0ebcf8740d5a2380ecfa2a8cc4a8b292..bbfa2ca2a72f1fec1a0fdd19330cc70c305b72c0 100644 (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])) {