Mercurial > defr > DualBlog
comparison comment.php @ 22:6e084c604876
Utilisation du titre du post dans le titre de la page.
| author | Franck Deroche <webmaster@defr.org> |
|---|---|
| date | Fri, 26 Oct 2007 18:01:37 +0200 |
| parents | 116ef98b4cb5 |
| children | 20159d39b8f8 |
comparison
equal
deleted
inserted
replaced
| 21:86a6793f1408 | 22:6e084c604876 |
|---|---|
| 33 $Data->Query("SELECT * FROM Mess WHERE num_mess = {$id}"); | 33 $Data->Query("SELECT * FROM Mess WHERE num_mess = {$id}"); |
| 34 $row = $Data->GetRow(); | 34 $row = $Data->GetRow(); |
| 35 $post = new Post($row); | 35 $post = new Post($row); |
| 36 $sk->addBlogPost($post->format()); | 36 $sk->addBlogPost($post->format()); |
| 37 | 37 |
| 38 // On définit le titre | |
| 39 $sk->setTitle($row['Titre'] . ' - Dual Blog'); | |
| 40 | |
| 38 // Récupération des commentaires | 41 // Récupération des commentaires |
| 39 $Data->Query("SELECT * FROM Commentaires Where MessId={$id} AND Visible=1 ORDER BY num_comm"); | 42 $Data->Query("SELECT * FROM Commentaires Where MessId={$id} AND Visible=1 ORDER BY num_comm"); |
| 40 $defaultGravatar = urlencode("http://defr.org/Misc/NoGravatar.png"); | 43 $defaultGravatar = urlencode("http://defr.org/Misc/NoGravatar.png"); |
| 41 while(0 !== ($row = $Data->GetRow())) { | 44 while(0 !== ($row = $Data->GetRow())) { |
| 42 $commentTpl = new Template('comment.xml'); | 45 $commentTpl = new Template('comment.xml'); |
