Skip to content

Commit

Permalink
Plugins must be folders
Browse files Browse the repository at this point in the history
  • Loading branch information
BafS committed Feb 20, 2016
1 parent 31fe9ed commit 8ee0e96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Parvula/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function getPluginList(array $except = []) {
if (is_dir(_PLUGINS_) && $handle = opendir(_PLUGINS_)) {
while (false !== ($entry = readdir($handle))) {
if (strlen($entry) > 1 && $entry[0] !== "." && $entry[0] !== "_"
&& !in_array($entry, $except)) {
&& is_dir(_PLUGINS_ . $entry) && !in_array($entry, $except)) {
$plugins[] = "Plugin\\" . $entry . "\\$entry";
}
}
Expand Down

0 comments on commit 8ee0e96

Please sign in to comment.