X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fvalidations.inc.php;h=dc972599c30c045033cc21da8ea7bd5dc79afdc1;hb=0175035a2ffc75469f58c4d4d36a0935405c2f29;hp=03e82fffb10916885a632c0632af276f884a3c63;hpb=d71befc4b51f0c71cd8358bb0870d9658b21d346;p=platal.git diff --git a/include/validations.inc.php b/include/validations.inc.php index 03e82ff..dc97259 100644 --- a/include/validations.inc.php +++ b/include/validations.inc.php @@ -158,7 +158,7 @@ class Validate // ajout d'un commentaire if (Env::has('hold') && Env::has('comm')) { - $this->comments[] = Array(S::v('bestalias'), Env::get('comm')); + $this->comments[] = Array(S::v('bestalias'), Env::v('comm')); // envoi d'un mail à hotliners global $globals; @@ -170,7 +170,7 @@ class Validate $body = "Validation {$this->type} pour {$this->prenom} {$this->nom}\n\n" . S::v('bestalias')." a ajouté le commentaire :\n\n" - . Env::get('comm')."\n\n" + . Env::v('comm')."\n\n" . "cf la discussion sur : ".$globals->baseurl."/admin/valider.php"; $mailer->setTxtBody(wordwrap($body)); @@ -194,7 +194,7 @@ class Validate } if (Env::has('refuse')) { - if (Env::get('comm')) { + if (Env::v('comm')) { $this->sendmail(false); $this->clean(); $this->trig('mail envoyé'); @@ -222,7 +222,7 @@ class Validate $body = "Cher(e) camarade,\n\n" . $this->_mail_body($isok) - . (Env::has('comm') ? "\n\n".Env::get('comm') : '') + . (Env::has('comm') ? "\n\n".Env::v('comm') : '') . "\n\nCordialement,\nL'équipe Polytechnique.org\n"; $mailer->setTxtBody(wordwrap($body));