mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-18 15:43:22 +02:00
transmit comment ID to template on comments and picture_comment
git-svn-id: http://piwigo.org/svn/trunk@11236 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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']),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user