Mailer.php
authorAlan Knowles <alan@roojs.com>
Tue, 13 Aug 2013 04:43:00 +0000 (12:43 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 13 Aug 2013 04:43:00 +0000 (12:43 +0800)
Mailer.php

index 9107afa..cc74af3 100644 (file)
@@ -116,7 +116,7 @@ class Pman_Core_Mailer {
         }
         
         $htmlbody = false;
-        $htmltemplate = new HTML_Template_Flexy( $tmp_opts );
+        
 
         if (is_string($htmltemplate->resolvePath('mail/'.$templateFile.'.body.html')) ) {
             // then we have a multi-part email...
@@ -124,6 +124,7 @@ class Pman_Core_Mailer {
             if (!empty($this->html_locale)) {
                 $html_tmp_opts['locale'] = $this->html_locale;
             }
+            $htmltemplate = new HTML_Template_Flexy( $html_tmp_opts );
             
             $htmltemplate->compile('mail/'. $templateFile.'.body.html');
             $htmlbody =  $htmltemplate->bufferedOutputObject($content);