Skip to content

Commit 1793295

Browse files
committed
matching the get/set changes in core
1 parent 03cd84a commit 1793295

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/PatternLab/PatternEngine/Twig/PatternEngineRule.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ public function __construct() {
3333
*/
3434
public function getPatternLoader($options = array()) {
3535

36-
$twigLoader = new PatternLoader(Config::$options["patternSourceDir"],array("patternPaths" => $options["patternPaths"]));
36+
//default var
37+
$patternSourceDir = Config::getOption("patternSourceDir");
38+
39+
$twigLoader = new PatternLoader($patternSourceDir,array("patternPaths" => $options["patternPaths"]));
3740

3841
return new \Twig_Environment($twigLoader);
3942

0 commit comments

Comments
 (0)