File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed
Framework/View/TemplateEngine Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -47,11 +47,6 @@ class Twig extends Php
4747 */
4848 protected $ eventManager ;
4949
50- /**
51- * @var BlockInterface
52- */
53- protected $ currentBlock ;
54-
5550 /**
5651 * @param ObjectManagerInterface $helperFactory
5752 * @param DirectoryList $directoryList
@@ -151,11 +146,11 @@ public function catchGet(...$args)
151146 */
152147 public function render (BlockInterface $ block , $ fileName , array $ dictionary = [])
153148 {
154- $ tmpBlock = $ this ->currentBlock ;
155- $ this ->currentBlock = $ block ;
149+ $ tmpBlock = $ this ->_currentBlock ;
150+ $ this ->_currentBlock = $ block ;
156151 $ this ->twig ->addGlobal ('block ' , $ block );
157152 $ result = $ this ->getTemplate ($ fileName )->render ($ dictionary );
158- $ this ->currentBlock = $ tmpBlock ;
153+ $ this ->_currentBlock = $ tmpBlock ;
159154 return $ result ;
160155 }
161156
Original file line number Diff line number Diff line change 99 "twig/twig" : " ^3.0"
1010 },
1111 "type" : " magento2-module" ,
12- "version" : " 2.0.0 " ,
12+ "version" : " 2.0.1 " ,
1313 "license" : [
1414 " OSL-3.0"
1515 ],
You can’t perform that action at this time.
0 commit comments