From: fabien Date: Wed, 11 Nov 2009 17:26:02 +0000 (+0000) Subject: changed template loading of parent templates to use the memory cache provided by... X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=71ed2a0470f819a17711280ff5c0f8e11aa2a062;p=web%2Fkonrad%2Ftwig.git changed template loading of parent templates to use the memory cache provided by the environment git-svn-id: http://svn.twig-project.org/trunk@133 93ef8e89-cb99-4229-a87c-7fa0fa45744b --- diff --git a/lib/Twig/Node/Module.php b/lib/Twig/Node/Module.php index 99a8765..f77f1dd 100644 --- a/lib/Twig/Node/Module.php +++ b/lib/Twig/Node/Module.php @@ -99,7 +99,7 @@ class Twig_Node_Module extends Twig_Node implements Twig_NodeListInterface if (!is_null($this->extends)) { $compiler - ->write('$this->load(') + ->write('$this->env->loadTemplate(') ->repr($this->extends) ->raw(");\n\n") ;