X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fxorg.mailer.inc.php;h=19e64a2cc4bb3236e7bc1e4d33f1ff8f52e475ef;hb=cab0809050d58f8484608e91f7555ebd69dcb451;hp=08036e20c26d240bf34e25025e2f49ad8b3ba233;hpb=0337d704b62718d7c77106c0e4c4e26fb02beacf;p=platal.git diff --git a/include/xorg.mailer.inc.php b/include/xorg.mailer.inc.php index 08036e2..19e64a2 100644 --- a/include/xorg.mailer.inc.php +++ b/include/xorg.mailer.inc.php @@ -1,6 +1,6 @@ compile_check=true; $this->template_dir = $globals->root . "/templates/"; - $this->compile_dir = $globals->root . "/templates_c/"; + $this->compile_dir = $globals->root . "/spool/templates_c/"; $this->config_dir = $globals->root . "/configs/"; $this->register_outputfilter('mail_format'); @@ -78,7 +73,7 @@ class XOrgMailer extends Smarty { // do not try to optimize, in the templates, some function can modify our object, then we // have to fetch in the first time, and only then send the mail. - $body = $this->fetch($this->mail_dir."/".$this->_tpl); + $body = $this->fetch($this->_tpl); $mailer = new HermesMailer(); $mailer->setFrom($this->_from); $mailer->addTo(implode(',',$this->_to));