X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fvalidations.inc.php;h=2d730a2e4773b84f892da216fb6ba9cf8f0819fb;hb=b6ba1a0417b6fc73f3d1701146373b4bec0d1428;hp=aaa6bf5736cc9ef5d1d833e78db74f146b40f51a;hpb=9be4a981587806840e509ca9ebc7c642b8652837;p=platal.git diff --git a/include/validations.inc.php b/include/validations.inc.php index aaa6bf5..2d730a2 100644 --- a/include/validations.inc.php +++ b/include/validations.inc.php @@ -215,7 +215,7 @@ abstract class Validate $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 !!!'); } } @@ -237,10 +237,8 @@ abstract class Validate $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(); @@ -340,7 +338,7 @@ abstract class Validate protected function _mail_ps($isok) { - return null; + return ''; } // }}}