We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fd6d8e2 + 7f5647b commit a74edcaCopy full SHA for a74edca
1 file changed
src/PatternLab/PatternEngine/Twig/TwigUtil.php
@@ -61,7 +61,8 @@ public static function addPaths($filesystemLoader, $patternSourceDir) {
61
$finder = new Finder();
62
$finder->directories()->depth(0)->in($patternSourceDir);
63
foreach ($finder as $file) {
64
- $patternBits = explode("-",$file->getRelativePathName(),2);
+ $pattern = $file->getRelativePathName();
65
+ $patternBits = explode("-",$pattern,2);
66
$patternTypePath = (((int)$patternBits[0] != 0) || ($patternBits[0] == '00')) ? $patternBits[1] : $pattern;
67
$filesystemLoader->addPath($file->getPathName(), $patternTypePath);
68
}
0 commit comments