Skip to content

Commit

Permalink
Update Plugin.php
Browse files Browse the repository at this point in the history
Variable '$path' is introduced in an outer loop and overridden here.
  • Loading branch information
Theaxiom committed Apr 13, 2017
1 parent 871f85d commit 6eb894b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Core/Plugin.php
Expand Up @@ -230,9 +230,9 @@ public static function loadAll(array $options = [])
continue;
}
$dir = new DirectoryIterator($path);
foreach ($dir as $path) {
if ($path->isDir() && !$path->isDot()) {
$plugins[] = $path->getBasename();
foreach ($dir as $dirPath) {
if ($dirPath->isDir() && !$dirPath->isDot()) {
$plugins[] = $dirPath->getBasename();
}
}
}
Expand Down

0 comments on commit 6eb894b

Please sign in to comment.