From d99c03f39d2e47a3bfa146cf5e415abdd1e6704b Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 14 Oct 2014 14:56:12 -0700 Subject: [PATCH] Fixes #774 - Download comments. --- e107_handlers/comment_class.php | 10 +++++----- e107_plugins/download/handlers/download_class.php | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/e107_handlers/comment_class.php b/e107_handlers/comment_class.php index d912ff331..8bcdb2166 100644 --- a/e107_handlers/comment_class.php +++ b/e107_handlers/comment_class.php @@ -921,12 +921,12 @@ class comment /** * Displays existing comments, and a comment entry form * - * @param unknown_type $table - the source table for the associated item - * @param unknown_type $action - usually 'comment' or 'reply' - * @param unknown_type $id - ID of item associated with comments (e.g. news ID) + * @param string $table - the source table for the associated item + * @param string $action - usually 'comment' or 'reply' + * @param integer $id - ID of item associated with comments (e.g. news ID) * @param unknown_type $width - appears to not be used - * @param unknown_type $subject - * @param unknown_type $rate + * @param string $subject + * @param boolean $rate */ function compose_comment($table, $action, $id, $width, $subject, $rate = FALSE, $return = FALSE, $tablerender = TRUE) { diff --git a/e107_plugins/download/handlers/download_class.php b/e107_plugins/download/handlers/download_class.php index 46bc75871..35cb4d59a 100644 --- a/e107_plugins/download/handlers/download_class.php +++ b/e107_plugins/download/handlers/download_class.php @@ -379,8 +379,8 @@ class download unset($text); if ($dlrow['download_comment']) - { - $comments = e107::getComment()->compose_comment("download", "comment", $id, $width,$dlrow['download_name'], FALSE, true); + { + $comments = e107::getComment()->compose_comment("download", "comment", $dlrow['download_id'], $width, $dlrow['download_name'], FALSE, true); $ret .= $ns->tablerender($comments['caption'], $comments['comment'].$comments['comment_form'], 'download-comments', true); }