do not traverse into invoice template subdirectories (#3735)
This commit is contained in:
@@ -161,7 +161,7 @@ final class InvoiceDocumentRepository
|
||||
continue;
|
||||
}
|
||||
|
||||
$finder = Finder::create()->ignoreDotFiles(true)->files()->in($searchDir)->name('*.*');
|
||||
$finder = Finder::create()->ignoreDotFiles(true)->files()->in($searchDir)->depth(0)->name('*.*');
|
||||
foreach ($finder->getIterator() as $file) {
|
||||
$doc = new InvoiceDocument($file);
|
||||
// the first found invoice document wins
|
||||
|
||||
Reference in New Issue
Block a user