X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fvalidations%2Fnl.inc.php;h=10986733cc0c8f66d171f397af86ad9daff9a67d;hb=9be4a981587806840e509ca9ebc7c642b8652837;hp=c0eecddfd0244ebcd6cc4abdf2a659d8a269626b;hpb=ecf2b474289f94932ff60ab18674610979d0e0db;p=platal.git diff --git a/include/validations/nl.inc.php b/include/validations/nl.inc.php index c0eecdd..1098673 100644 --- a/include/validations/nl.inc.php +++ b/include/validations/nl.inc.php @@ -80,9 +80,25 @@ class NLReq extends Validate protected function _mail_body($isok) { if ($isok) { - return ' L\'article que tu avais proposé ('.$this->art->title().') vient d\'être validé.'; + return " L'article que tu avais proposé (" . $this->art->title() . ") vient d'être validé."; } else { - return ' L\'article que tu avais proposé ('.$this->art->title().') a été refusé.'; + return " L'article que tu avais proposé a été refusé."; + } + } + + // }}} + // {{{ function _mail_ps + + protected function _mail_ps($isok) + { + if ($isok) { + return null; + } else { + return "\nPS : pour rappel, en voici le contenu :\n" + . "--------------------------------------------------------------------------------\n*" + . $this->art->title() + . "\n--------------------------------------------------------------------------------\n" + . $this->art->body() . "\n\n" . $this->art->append() . "\n"; } }