From c59652a03d7b80dee39230d292e19e0e58f5e0bd Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Wed, 5 Jul 2006 22:47:42 +0000 Subject: [PATCH] can work, but too magical for me git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@382 839d8a87-29fc-0310-9880-83ba4fa771e5 --- include/xorg.mailer.inc.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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)); -- 2.1.4