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

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