changeset 57:ef5fd86d30ec

Fix, les dates des commentaires ne s'affichaient plus. Le template attendait dateComment, et le code fournissait commentDate...
author Franck Deroche <webmaster@defr.org>
date Tue, 29 Jan 2008 14:34:03 +0100
parents 0aa843c6571b
children ded2849cf38c
files comment.php templates/comment.xml
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/comment.php	Tue Jan 29 12:15:27 2008 +0100
+++ b/comment.php	Tue Jan 29 14:34:03 2008 +0100
@@ -49,7 +49,7 @@
       $defaultGravatar = urlencode("http://defr.org/Misc/NoGravatar.png");
       while(0 !== ($row = $Data->GetRow())) {
 	    $commentTpl = new Template(Skeleton::getTemplateFile('comment'));
-        $dateFormatee = strftime(" à %Hh%M le <span class='Date'>%A %d %B %Y</span>", strtotime($row['DateComment']));
+        $dateFormatee = strftime(" à %Hh%M, le %A %d %B %Y", strtotime($row['DateComment']));
         $dateFormateeISO = date('c', strtotime($row['DateComment']));
         $AdresseMail = $row['AdresseMail'];
         $grav_id = md5($AdresseMail);
--- a/templates/comment.xml	Tue Jan 29 12:15:27 2008 +0100
+++ b/templates/comment.xml	Tue Jan 29 14:34:03 2008 +0100
@@ -4,7 +4,7 @@
      xmlns:tr='http://defr.net/2007/template'>
   <div class='Infos'>
     <img class='gravatar' tr:id='gravatar' alt='' />
-	  <a tr:id='auteur' /> <tr:dateComment />
+	  <a tr:id='auteur' /> <tr:commentDate />
   </div>
   <div class='Comment'><tr:comment /></div>
   <br class='endComment' />