Fixed some bad path to templates.

This commit is contained in:
Loic d'Anterroches 2008-11-18 10:58:54 +01:00
parent 7e1f5bb029
commit 79312f7242
2 changed files with 3 additions and 3 deletions

View File

@ -131,7 +131,7 @@ class IDF_Form_Register extends Pluf_Form
'user'=> $user, 'user'=> $user,
) )
); );
$tmpl = new Pluf_Template('register/confirmation-email.txt'); $tmpl = new Pluf_Template('idf/register/confirmation-email.txt');
$text_email = $tmpl->render($context); $text_email = $tmpl->render($context);
$email = new Pluf_Mail($from_email, $user->email, $email = new Pluf_Mail($from_email, $user->email,
__('Confirm the creation of your account.')); __('Confirm the creation of your account.'));

View File

@ -165,7 +165,7 @@ class IDF_Views_Issue
$email = new Pluf_Mail(Pluf::f('from_email'), $oemail, $email = new Pluf_Mail(Pluf::f('from_email'), $oemail,
sprintf(__('Issue %s - %s (%s)'), sprintf(__('Issue %s - %s (%s)'),
$issue->id, $issue->summary, $prj->shortname)); $issue->id, $issue->summary, $prj->shortname));
$tmpl = new Pluf_Template('issues/issue-created-email.txt'); $tmpl = new Pluf_Template('idf/issues/issue-created-email.txt');
$email->addTextMessage($tmpl->render($context)); $email->addTextMessage($tmpl->render($context));
$email->sendMail(); $email->sendMail();
} }
@ -276,7 +276,7 @@ class IDF_Views_Issue
'url_base' => Pluf::f('url_base'), 'url_base' => Pluf::f('url_base'),
) )
); );
$tmpl = new Pluf_Template('issues/issue-updated-email.txt'); $tmpl = new Pluf_Template('idf/issues/issue-updated-email.txt');
$text_email = $tmpl->render($context); $text_email = $tmpl->render($context);
$email = new Pluf_Mail_Batch(Pluf::f('from_email')); $email = new Pluf_Mail_Batch(Pluf::f('from_email'));
foreach ($interested as $user) { foreach ($interested as $user) {