We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03cd84a commit 1793295Copy full SHA for 1793295
src/PatternLab/PatternEngine/Twig/PatternEngineRule.php
@@ -33,7 +33,10 @@ public function __construct() {
33
*/
34
public function getPatternLoader($options = array()) {
35
36
- $twigLoader = new PatternLoader(Config::$options["patternSourceDir"],array("patternPaths" => $options["patternPaths"]));
+ //default var
37
+ $patternSourceDir = Config::getOption("patternSourceDir");
38
+
39
+ $twigLoader = new PatternLoader($patternSourceDir,array("patternPaths" => $options["patternPaths"]));
40
41
return new \Twig_Environment($twigLoader);
42
0 commit comments