From 24139d6e59b9f4ac321dc9ae978007f158b2ad01 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Sat, 4 Jun 2011 21:07:27 +0000 Subject: merge r11236 from trunk transmit comment ID to template on comments and picture_comment git-svn-id: http://piwigo.org/svn/branches/2.2@11237 68402e56-0260-453c-a942-63ccdbb3a9ee --- comments.php | 1 + include/picture_comment.inc.php | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/comments.php b/comments.php index 3fbeef8bb..27bc4975a 100644 --- a/comments.php +++ b/comments.php @@ -462,6 +462,7 @@ SELECT c.id, name, permalink, uppercats, com.id as comment_id ); $tpl_comment = array( + 'ID' => $comment_id, 'U_PICTURE' => $url, 'TN_SRC' => $thumbnail_src, 'ALT' => $name, diff --git a/include/picture_comment.inc.php b/include/picture_comment.inc.php index e40a11f09..ec92594e8 100644 --- a/include/picture_comment.inc.php +++ b/include/picture_comment.inc.php @@ -167,10 +167,9 @@ SELECT $tpl_comment = array( + 'ID' => $row['id'], 'AUTHOR' => trigger_event('render_comment_author', $author), - - 'DATE' => format_date( $row['date'], true), - + 'DATE' => format_date($row['date'], true), 'CONTENT' => trigger_event('render_comment_content',$row['content']), ); -- cgit v1.2.3