|
|
@@ -230,9 +230,9 @@ class Plugin
|
|
|
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();
|
|
|
}
|
|
|
}
|
|
|
}
|