Fixes #316 manually (unable to merge)

This commit is contained in:
Sam Georges 2014-06-17 19:14:44 +10:00
parent 91ecb55ca3
commit a866c39ec3
2 changed files with 2 additions and 0 deletions

View File

@ -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")) {

View File

@ -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')