<?php
/***************************************************************************
- * Copyright (C) 2003-2008 Polytechnique.org *
+ * Copyright (C) 2003-2010 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
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 '';
+ }
+ return "\nPS : pour rappel, en voici le contenu :"
+ . "\n--------------------------------------------------------------------------\n"
+ . $this->art->title()
+ . "\n--------------------------------------------------------------------------\n"
+ . $this->art->body() . "\n\n" . $this->art->append() . "\n";
+ }
+
+ // }}}
// {{{ function commit()
public function commit()
{
- $nl = new Newsletter();
+ $nl = new NewsLetter();
$nl->saveArticle($this->art);
return true;
}