Browse Source

Merge pull request #10514 from Theaxiom/patch-1

Update Plugin.php
Mark Sch 9 years ago
parent
commit
08f24e1428
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/Core/Plugin.php

+ 3 - 3
src/Core/Plugin.php

@@ -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();
                 }
             }
         }