Fix the newsletter.send.php script
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Sat, 29 Jan 2011 22:04:42 +0000 (23:04 +0100)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Sun, 30 Jan 2011 00:05:15 +0000 (01:05 +0100)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
bin/newsletter.send.php

index bf97705..e2c7b90 100755 (executable)
@@ -36,8 +36,9 @@ EOF;
 }
 
 $id = intval($opt['i']);
-$nl = new NewsLetter($id);
-$nl->sendToAll();
+$nl = NewsLetter::forGroup(NewsLetter::GROUP_XORG);
+$issue = $nl->getIssue($id);
+$issue->sendToAll();
 
 // vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
 ?>