File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
src/PatternLab/PatternEngine/Twig/Loaders Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ public function __construct($options = array()) {
3030 $ this ->instance = new \Twig_Environment ($ twigLoader , array ("debug " => $ twigDebug ));
3131
3232 // customize the loader
33- $ this ->instance = TwigUtil::loadDateFormats ();
34- $ this ->instance = TwigUtil::loadDebug ();
33+ $ this ->instance = TwigUtil::loadDateFormats ($ this -> instance );
34+ $ this ->instance = TwigUtil::loadDebug ($ this -> instance );
3535 $ this ->instance = TwigUtil::loadMacros ($ this ->instance , "filesystem " );
3636
3737 }
Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ public function __construct($options = array()) {
3737 $ this ->instance = new \Twig_Environment ($ twigLoader , array ("debug " => $ twigDebug ));
3838
3939 // customize the loader
40- $ this ->instance = TwigUtil::loadDateFormats ();
41- $ this ->instance = TwigUtil::loadDebug ();
40+ $ this ->instance = TwigUtil::loadDateFormats ($ this -> instance );
41+ $ this ->instance = TwigUtil::loadDebug ($ this -> instance );
4242 $ this ->instance = TwigUtil::loadMacros ($ this ->instance , "pattern " );
4343
4444 }
Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ public function __construct($options = array()) {
3232 $ this ->instance = new \Twig_Environment ($ twigLoader , array ("debug " => $ twigDebug ));
3333
3434 // customize the loader
35- $ this ->instance = TwigUtil::loadDateFormats ();
36- $ this ->instance = TwigUtil::loadDebug ();
35+ $ this ->instance = TwigUtil::loadDateFormats ($ this -> instance );
36+ $ this ->instance = TwigUtil::loadDebug ($ this -> instance );
3737 $ this ->instance = TwigUtil::loadMacros ($ this ->instance , "string " );
3838
3939 }
You can’t perform that action at this time.
0 commit comments