Mercurial > defr > DualBlog
comparison comment.php @ 23:20159d39b8f8
Correction de l'url pour l'obtention des gravatars.
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Fri, 26 Oct 2007 18:09:36 +0200 |
parents | 6e084c604876 |
children | b23b8f2a8c91 |
comparison
equal
deleted
inserted
replaced
22:6e084c604876 | 23:20159d39b8f8 |
---|---|
44 while(0 !== ($row = $Data->GetRow())) { | 44 while(0 !== ($row = $Data->GetRow())) { |
45 $commentTpl = new Template('comment.xml'); | 45 $commentTpl = new Template('comment.xml'); |
46 $dateFormatee = strftime(" à %Hh%M le <span class='Date'>%A %d %B %Y</span>", strtotime($row['DateComment'])); | 46 $dateFormatee = strftime(" à %Hh%M le <span class='Date'>%A %d %B %Y</span>", strtotime($row['DateComment'])); |
47 $AdresseMail = $row['AdresseMail']; | 47 $AdresseMail = $row['AdresseMail']; |
48 $grav_id = md5($AdresseMail); | 48 $grav_id = md5($AdresseMail); |
49 $grav_url = 'http://www.gravatar.com/avatar.php?gravatar_id=' . $grav_id . '&size=50&default=' . $defaultGravatar; | 49 $grav_url = 'http://www.gravatar.com/avatar.php?gravatar_id=' . $grav_id . '&size=50&default=' . $defaultGravatar; |
50 $Comment = nl2br($row['Comment']); | 50 $Comment = nl2br($row['Comment']); |
51 $Comment = str_replace(" & ", " & ", $Comment); | 51 $Comment = str_replace(" & ", " & ", $Comment); |
52 $commentFrag = $commentTpl->getDocumentFragment(); | 52 $commentFrag = $commentTpl->getDocumentFragment(); |
53 $commentFrag->appendXML($Comment); | 53 $commentFrag->appendXML($Comment); |
54 $params = array( | 54 $params = array( |