diff --git a/comments.php b/comments.php index 115bf8572..6b949eb31 100644 --- a/comments.php +++ b/comments.php @@ -425,11 +425,13 @@ SELECT id, uppercats } $template->assign_block_vars( - 'picture.comment', + 'comment', array( - 'COMMENT_AUTHOR' => $author, - 'COMMENT_DATE'=>format_date($comment['date'],'mysql_datetime',true), - 'COMMENT'=>parse_comment_content($comment['content']), + 'U_PICTURE' => add_session_id($url), + 'TN_SRC' => $thumbnail_src, + 'AUTHOR' => $author, + 'DATE'=>format_date($comment['date'],'mysql_datetime',true), + 'CONTENT'=>parse_comment_content($comment['content']), )); } } diff --git a/doc/ChangeLog b/doc/ChangeLog index cb664a37e..a2fba5ef3 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,9 @@ +2005-08-21 Pierrick LE GALL + + * modification : adaptation of template variables and blocks in + comments page to display comment by comment instead of picture by + picture. + 2005-08-20 Pierrick LE GALL * improvement : dedicated page for user comments validation/reject diff --git a/template/cclear/admin/comments.tpl b/template/cclear/admin/comments.tpl index 93e5c4ed9..d903c332a 100644 --- a/template/cclear/admin/comments.tpl +++ b/template/cclear/admin/comments.tpl @@ -1,6 +1,6 @@