Skip to content
Snippets Groups Projects
Commit ca5d39e8 authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

pluginhost: assume plugins.local exists

parent b9634eb8
No related branches found
No related tags found
No related merge requests found
...@@ -129,12 +129,10 @@ class PluginHost { ...@@ -129,12 +129,10 @@ class PluginHost {
} }
} }
function load_all($kind, $owner_uid = false) { 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(glob("plugins/*"), glob("plugins.local/*"));
$plugins = array_merge($plugins, array_map("basename", $plugins = array_filter($plugins, "is_dir");
array_filter(glob("plugins.local/*"), "is_dir"))); $plugins = array_map("basename", $plugins);
}
asort($plugins); asort($plugins);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment