Fixes to axletter (correctly display number of emails sent)
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Thu, 27 May 2010 16:08:12 +0000 (18:08 +0200)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Fri, 28 May 2010 00:46:26 +0000 (02:46 +0200)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
bin/cron/axletter.send.php
include/massmailer.inc.php
templates/axletter/edit.tpl

index e6bbcda..025e1fb 100755 (executable)
@@ -29,7 +29,7 @@ if ($al) {
     echo ' ' . date("H:i:s") . " -> début de l'envoi\n";
     $emailsCount = $al->sendToAll();
     echo ' ' . date("H:i:s") . " -> fin de l'envoi\n\n";
-    echo $emailsCount . "emails ont été envoyés lors de cet envoi.\n";
+    echo $emailsCount . " emails ont été envoyés lors de cet envoi.\n";
 }
 
 // vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
index 3dde660..a6dc702 100644 (file)
@@ -222,6 +222,7 @@ abstract class MassMailer
 
             sleep(60);
         }
+        return $emailsCount;
     }
 
     abstract protected function assignData(&$smarty);
index 23cda37..34c538e 100644 (file)
@@ -25,7 +25,7 @@
 <form action="{$platal->pl_self()}" method="post">
   {xsrf_token_field}
   {if $am}
-  {include file="axletter/letter.tpl"}
+  {include file="axletter/letter.mail.tpl"}
 
   <p class="center">
     <input type="hidden" name="id" value="{$id}" />