From f7ffcdc16ce225345cde52c7c96d01d3fa28092e Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 30 Jul 2011 12:08:09 -0400 Subject: [PATCH] Fix a bug in TemplateLoader --- views/template_loader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/template_loader.php b/views/template_loader.php index 043ff71..6a9da4d 100644 --- a/views/template_loader.php +++ b/views/template_loader.php @@ -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())) -- 2.43.5