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

index 6e0090f..9107afa 100644 (file)
@@ -120,7 +120,10 @@ class Pman_Core_Mailer {
 
         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;
+            }
             
             $htmltemplate->compile('mail/'. $templateFile.'.body.html');
             $htmlbody =  $htmltemplate->bufferedOutputObject($content);