projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pending commit, finished during MQ/S download ...
[platal.git]
/
include
/
xorg.mailer.inc.php
diff --git
a/include/xorg.mailer.inc.php
b/include/xorg.mailer.inc.php
index
08036e2
..
19e64a2
100644
(file)
--- a/
include/xorg.mailer.inc.php
+++ b/
include/xorg.mailer.inc.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-200
4
Polytechnique.org *
+ * Copyright (C) 2003-200
6
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-29,12
+29,7
@@
require_once('Smarty.class.php');
class XOrgMailer extends Smarty
{
// {{{ properties
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;
/** stores the mail template name */
var $_tpl;
@@
-60,7
+55,7
@@
class XOrgMailer extends Smarty
$this->compile_check=true;
$this->template_dir = $globals->root . "/templates/";
$this->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');
$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.
{
// 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));
$mailer = new HermesMailer();
$mailer->setFrom($this->_from);
$mailer->addTo(implode(',',$this->_to));