Use Boolean in tree_base data

Simplify config['subdirs'] substitution

Signed-off-by: Diederik de Groot <ddegroot@talon.nl>
This commit is contained in:
Diederik de Groot
2020-02-16 01:30:52 +01:00
parent fcf0495a38
commit 00b1241dfc
2 changed files with 19 additions and 20 deletions

View File

@@ -56,7 +56,7 @@ class Resolver {
$iterator = new RecursiveIteratorIterator($dir_iterator, RecursiveIteratorIterator::SELF_FIRST);
foreach ($iterator as $file) {
if ($file->isFile()) {
if ($value['strip'] === 1) {
if ($value['strip']) {
$this->addFile($file->getFileName(), $file->getPathname());
} else {
$subdir = basename(dirname($file->getPathname()));