Put mail smarty cache in a separated directory
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Wed, 17 Jan 2007 14:13:39 +0000 (14:13 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Wed, 17 Jan 2007 14:13:39 +0000 (14:13 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1351 839d8a87-29fc-0310-9880-83ba4fa771e5

Makefile
classes/plmailer.php

index 2a26014..e6a32b0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -32,9 +32,9 @@ q:
 ## core
 ##
 
-core: spool/templates_c include/globals.inc.php configs/platal.cron
+core: spool/templates_c spool/templates_c/mails include/globals.inc.php configs/platal.cron
 
-spool/templates_c spool/uploads:
+spool/templates_c spool/templates_c/mails spool/uploads:
        mkdir -p $@
        chmod o+w $@
 
index 151df42..46a854e 100644 (file)
@@ -37,8 +37,9 @@ class PlMail extends Smarty
         $this->compile_check = true;
 
         $this->template_dir  = $globals->spoolroot . "/templates/";
-        $this->compile_dir   = $globals->spoolroot . "/spool/templates_c/";
+        $this->compile_dir   = $globals->spoolroot . "/spool/templates_c/mails/";
         $this->config_dir    = $globals->spoolroot . "/configs/";
+        
 
         $this->register_outputfilter(Array($this, 'mail_format'));
         $this->register_function('from',    Array($this, 'setFrom'));
@@ -237,6 +238,7 @@ class PlMailer extends Mail_Mime {
     
     private function processPage($with_html = true)
     {
+        $level = error_reporting(0);
         if (!is_null($this->page)) {
             $this->setTxtBody($this->page->run(false));
             if ($with_html) {
@@ -246,6 +248,7 @@ class PlMailer extends Mail_Mime {
                 }
             }
         }
+        error_reporting($level);
     }
 
     public function send($with_html = true)