changed template loading of parent templates to use the memory cache provided by...
authorfabien <fabien@93ef8e89-cb99-4229-a87c-7fa0fa45744b>
Wed, 11 Nov 2009 17:26:02 +0000 (17:26 +0000)
committerfabien <fabien@93ef8e89-cb99-4229-a87c-7fa0fa45744b>
Wed, 11 Nov 2009 17:26:02 +0000 (17:26 +0000)
git-svn-id: http://svn.twig-project.org/trunk@133 93ef8e89-cb99-4229-a87c-7fa0fa45744b

lib/Twig/Node/Module.php

index 99a8765..f77f1dd 100644 (file)
@@ -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")
       ;