Mercurial > defr > DualBlog
comparison comment.php @ 30:fa43c43763a2
Attribution correcte des urls des commentaires, petit refactoring des posts
On a maintenant une fonction séparée sur les posts permettant d'obtenir
les différentes informations sur les posts, ce qui peut s'avérer utile
si on veut les ré-utiliser par exemple sur les différents commentaires.
| author | Franck Deroche <webmaster@defr.org> |
|---|---|
| date | Mon, 05 Nov 2007 08:46:49 +0100 |
| parents | b23b8f2a8c91 |
| children | 2d98421d43da |
comparison
equal
deleted
inserted
replaced
| 29:750613da68ec | 30:fa43c43763a2 |
|---|---|
| 56 $Comment = str_replace(" & ", " & ", $Comment); | 56 $Comment = str_replace(" & ", " & ", $Comment); |
| 57 $commentFrag = $commentTpl->getDocumentFragment(); | 57 $commentFrag = $commentTpl->getDocumentFragment(); |
| 58 $commentFrag->appendXML($Comment); | 58 $commentFrag->appendXML($Comment); |
| 59 $params = array( | 59 $params = array( |
| 60 '#gravatar@src' => $grav_url, | 60 '#gravatar@src' => $grav_url, |
| 61 '#auteur@href' => 'TODO', | 61 '#auteur@href' => $post->getURL() . '#c' . $row['num_comm'], |
| 62 '#auteur@name' => 'c' . $row['num_comm'], | 62 '#auteur@name' => 'c' . $row['num_comm'], |
| 63 '#auteur' => $row['Auteur'], | 63 '#auteur' => $row['Auteur'], |
| 64 'commentDate' => $dateFormatee, | 64 'commentDate' => $dateFormatee, |
| 65 'comment' => $commentFrag, | 65 'comment' => $commentFrag, |
| 66 ); | 66 ); |
