X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fvalidations%2Fevts.inc.php;h=7dcbce07e98f81ba548117edc63076a5914c9cdb;hb=f9a8c549deebf96792c3ba423e01545dc7caf95b;hp=4a7416f6baf688c6e9992b6ea852ff50789f9933;hpb=245923e335d0da5bec9495991a7846be9f0563ab;p=platal.git diff --git a/include/validations/evts.inc.php b/include/validations/evts.inc.php index 4a7416f..7dcbce0 100644 --- a/include/validations/evts.inc.php +++ b/include/validations/evts.inc.php @@ -1,6 +1,6 @@ titre = $_titre; @@ -58,7 +58,7 @@ class EvtReq extends Validate // }}} // {{{ function readImage() - private function readImage(PlUpload &$upload) + private function readImage(PlUpload $upload) { if ($upload->exists() && $upload->isType('image')) { list($this->imgx, $this->imgy, $this->imgtype) = $upload->imageInfo(); @@ -122,10 +122,11 @@ class EvtReq extends Validate protected function _mail_body($isok) { + $you_have = ($this->formal ? 'vous aviez' : 'tu avais'); if ($isok) { - return " L'annonce que tu avais proposée ({$this->titre}) vient d'être validée."; + return " L'annonce que $you_have proposée ({$this->titre}) vient d'être validée."; } else { - return " L'annonce que tu avais proposée ({$this->titre}) a été refusée."; + return " L'annonce que $you_have proposée ({$this->titre}) a été refusée."; } }