X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fxorg.mailer.inc.php;h=19e64a2cc4bb3236e7bc1e4d33f1ff8f52e475ef;hb=bd4be95d998237aa41abcf544aaabf82b73fdce0;hp=70c6dadbcccfd0ca5d4b6a00bad3cc63ef3c0b15;hpb=50a40a33a496131e817df875607ea5542d096a64;p=platal.git diff --git a/include/xorg.mailer.inc.php b/include/xorg.mailer.inc.php index 70c6dad..19e64a2 100644 --- a/include/xorg.mailer.inc.php +++ b/include/xorg.mailer.inc.php @@ -29,12 +29,7 @@ require_once('Smarty.class.php'); class XOrgMailer extends Smarty { // {{{ properties - - /** Directory used to store mails_templates. - * Smarty::template_dir subdir used to sotre the mails templates. - * The body of the message is taken from a tsmarty template - */ - var $mail_dir = "mails"; + /** stores the mail template name */ var $_tpl; @@ -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));