File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -61,19 +61,19 @@ public function getEnvironment()
6161 */
6262 public function getParent (array $ context )
6363 {
64- if (null === $ this ->parent ) {
65- try {
66- $ parent = $ this ->doGetParent ($ context );
67- $ this ->parent = false === $ parent ? false : $ this ->env ->resolveTemplate ($ parent );
68- } catch (Twig_Error_Loader $ e ) {
69- $ e ->setTemplateFile (null );
70- $ e ->guess ();
71-
72- throw $ e ;
73- }
64+ if (null !== $ this ->parent ) {
65+ return $ this ->parent ;
7466 }
7567
76- return $ this ->parent ;
68+ try {
69+ $ parent = $ this ->doGetParent ($ context );
70+ $ this ->parent = false === $ parent ? false : $ this ->env ->resolveTemplate ($ parent );
71+ } catch (Twig_Error_Loader $ e ) {
72+ $ e ->setTemplateFile (null );
73+ $ e ->guess ();
74+
75+ throw $ e ;
76+ }
7777 }
7878
7979 protected function doGetParent (array $ context )
You can’t perform that action at this time.
0 commit comments