Preview.php
authorAlan Knowles <alan@roojs.com>
Wed, 10 Sep 2014 04:35:07 +0000 (12:35 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 10 Sep 2014 04:35:07 +0000 (12:35 +0800)
Preview.php

index 35af005..6776c7b 100644 (file)
@@ -86,8 +86,10 @@ class Pman_Builder_Preview extends Pman_Cms_Preview
             $this->elements = HTML_Template_Flexy_Factory::setErrors($this->elements,$this->errors);
         }
         $template_engine->elements = $this->elements;
-        $this->timer->setMarker(__CLASS__ . '::outputBody - render template');
-        DB_DataObject::debugLevel(1);
+        if ($this->timer) {
+            $this->timer->setMarker(__CLASS__ . '::outputBody - render template');
+        }
+        //DB_DataObject::debugLevel(1);
         $template_engine->outputObject($this,$this->elements);
         
         if ($this->timer) {