<?php
/***************************************************************************
- * Copyright (C) 2003-2009 Polytechnique.org *
+ * Copyright (C) 2003-2010 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
$this->stamp = date('YmdHis');
$this->unique = $_unique;
$this->type = $_type;
+ $this->promo = $this->user->promo();
}
// }}}
$this->trigSuccess('Email de refus envoyé');
return true;
} else {
- $this->trigError('pas de motivation pour le refus !!!');
+ $this->trigError('Pas de motivation pour le refus !!!');
}
}
$body = ($this->user->isFemale() ? "Chère camarade,\n\n" : "Cher camarade,\n\n")
. $this->_mail_body($isok)
. (Env::has('comm') ? "\n\n" . Env::v('comm') : '')
- . "\n\nCordialement,\n-- \nL'équipe de Polytechnique.org\n";
- if (!is_null($this->_mail_ps($isok))) {
- $body .= $this->_mail_ps($isok);
- }
+ . "\n\nCordialement,\n-- \nL'équipe de Polytechnique.org\n"
+ . $this->_mail_ps($isok);
$mailer->setTxtBody(wordwrap($body));
$mailer->send();
protected function _mail_ps($isok)
{
- return null;
+ return '';
}
// }}}