Fixes #316 manually (unable to merge)
This commit is contained in:
parent
91ecb55ca3
commit
a866c39ec3
|
|
@ -299,6 +299,7 @@ class PluginManager
|
|||
$dirPath = $this->getPath();
|
||||
$it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($dirPath));
|
||||
$it->setMaxDepth(2);
|
||||
$it->rewind();
|
||||
|
||||
while($it->valid()) {
|
||||
if (($it->getDepth() > 1) && $it->isFile() && (strtolower($it->getFilename()) == "plugin.php")) {
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ class ThemeTest extends TestCase
|
|||
$result = 0;
|
||||
$it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path));
|
||||
$it->setMaxDepth(1);
|
||||
$it->rewind();
|
||||
|
||||
while($it->valid()) {
|
||||
if (!$it->isDot() && !$it->isDir() && $it->getExtension() == 'htm')
|
||||
|
|
|
|||
Loading…
Reference in New Issue