From 7bf75b82d49398d3eefdb1cf835fd357ef023dda Mon Sep 17 00:00:00 2001 From: Aleksi Peebles Date: Mon, 9 Dec 2019 22:28:24 +0200 Subject: [PATCH] Use patternSourceDir --- src/PatternLab/PatternEngine/Twig/Loaders/PatternLoader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PatternLab/PatternEngine/Twig/Loaders/PatternLoader.php b/src/PatternLab/PatternEngine/Twig/Loaders/PatternLoader.php index 456ca16..b14da3f 100644 --- a/src/PatternLab/PatternEngine/Twig/Loaders/PatternLoader.php +++ b/src/PatternLab/PatternEngine/Twig/Loaders/PatternLoader.php @@ -47,7 +47,7 @@ public function __construct($options = array()) { } // add source/_patterns subdirectories for Drupal theme template compatibility - $patternSourceDir = Config::getOption("sourceDir").DIRECTORY_SEPARATOR."_patterns"; + $patternSourceDir = Config::getOption("patternSourceDir"); $patternObjects = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($patternSourceDir), \RecursiveIteratorIterator::SELF_FIRST); $patternObjects->setFlags(\FilesystemIterator::SKIP_DOTS);