Preview.php
authorAlan Knowles <alan@roojs.com>
Mon, 1 Sep 2014 06:53:10 +0000 (14:53 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 1 Sep 2014 06:53:10 +0000 (14:53 +0800)
Preview.php

index 9ea9db1..45dc102 100644 (file)
@@ -71,7 +71,10 @@ class Pman_Builder_Preview extends Pman_Cms_Preview
             $template_engine = new HTML_Template_Flexy(array(
                 'templateDir' => $m->path
             ));
+        } else {
+            $template_engine = new HTML_Template_Flexy();
         }
+        
         $template_engine->compile($this->template);
         if ($this->elements) { /* BC crap! */
             $this->elements = HTML_Template_Flexy_Factory::setErrors($this->elements,$this->errors);