From: Andrew Dolgov Date: Fri, 5 Jun 2015 15:10:17 +0000 (+0300) Subject: pluginhost: assume plugins.local exists X-Git-Tag: 16.3~316 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ca5d39e8665dc6eaaeec3f53bddd338e07f9a038;p=tt-rss.git pluginhost: assume plugins.local exists --- diff --git a/classes/pluginhost.php b/classes/pluginhost.php index 13da7e7a..7a21f894 100644 --- a/classes/pluginhost.php +++ b/classes/pluginhost.php @@ -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);