]> git.wh0rd.org Git - tt-rss.git/commitdiff
pluginhost: assume plugins.local exists
authorAndrew Dolgov <noreply@fakecake.org>
Fri, 5 Jun 2015 15:10:17 +0000 (18:10 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Fri, 5 Jun 2015 15:10:17 +0000 (18:10 +0300)
classes/pluginhost.php

index 13da7e7ab697d508e4808944a341a336029eac64..7a21f894536db0ffbe4857922c13490c53881675 100644 (file)
@@ -129,12 +129,10 @@ class PluginHost {
                }
        }
        function load_all($kind, $owner_uid = false) {
-               $plugins = array_map("basename", array_filter(glob("plugins/*"), "is_dir"));
 
-               if (is_dir("plugins.local")) {
-                       $plugins = array_merge($plugins, array_map("basename",
-                               array_filter(glob("plugins.local/*"), "is_dir")));
-               }
+               $plugins = array_merge(glob("plugins/*"), glob("plugins.local/*"));
+               $plugins = array_filter($plugins, "is_dir");
+               $plugins = array_map("basename", $plugins);
 
                asort($plugins);