DataObjects/Person.php
authorAlan Knowles <alan@roojs.com>
Mon, 22 Oct 2012 05:19:08 +0000 (13:19 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 22 Oct 2012 05:19:08 +0000 (13:19 +0800)
DataObjects/Person.php

index 925b2fb..93b1f71 100644 (file)
@@ -81,14 +81,19 @@ class Pman_Core_DataObjects_Person extends DB_DataObject
             $_SERVER["HTTP_HOST"] :
             (isset($ff->HTTP_HOST) ? $ff->HTTP_HOST : 'localhost');
             
-        /* use the regex compiler, as it doesnt parse <tags */
-        require_once 'HTML/Template/Flexy.php';
-        $template = new HTML_Template_Flexy( array(
+        /* use the regex compiler, as it doesnt parse <tags */\
+        $tops = array(
             'compiler'    => 'Flexy',
             'nonHTML' => true,
             'filters' => array('SimpleTags','Mail'),
             //     'debug'=>1,
-        ));
+        );
+        if (!empty($args['templateDir'])) {
+            $tops['templateDir'] = $args['templateDir'];
+        }
+        
+        require_once 'HTML/Template/Flexy.php';
+        $template = new HTML_Template_Flexy( $tops );