Fix a bug in TemplateLoader
authorRobert Sesek <rsesek@google.com>
Sat, 30 Jul 2011 16:08:09 +0000 (12:08 -0400)
committerRobert Sesek <rsesek@google.com>
Sat, 30 Jul 2011 16:08:09 +0000 (12:08 -0400)
views/template_loader.php

index 043ff717263c387a9b0b47447cf19b2d97e5f323..6a9da4d4c7a8607edfa9ac88406ee573add3e82e 100644 (file)
@@ -109,7 +109,7 @@ class TemplateLoader
     if ($data === FALSE)
       return NULL;
 
-    return Template::NewWithData($data);
+    return Template::NewWithCompiledData($data);
   }
 
   /*!
@@ -129,7 +129,7 @@ class TemplateLoader
     if ($data === FALSE)
       throw new TemplateLoaderException('Could not load template ' . $this->template_name);
 
-    $template = Template::NewWithCompiledData($data);
+    $template = Template::NewWithData($data);
 
     // Cache the file.
     if (!file_put_contents($cache_path, $this->cache_prefix . $template->template()))