1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-29 10:50:25 +02:00

Fixes #774 - Download comments.

This commit is contained in:
Cameron
2014-10-14 14:56:12 -07:00
parent 38a583f429
commit d99c03f39d
2 changed files with 7 additions and 7 deletions

View File

@@ -921,12 +921,12 @@ class comment
/** /**
* Displays existing comments, and a comment entry form * Displays existing comments, and a comment entry form
* *
* @param unknown_type $table - the source table for the associated item * @param string $table - the source table for the associated item
* @param unknown_type $action - usually 'comment' or 'reply' * @param string $action - usually 'comment' or 'reply'
* @param unknown_type $id - ID of item associated with comments (e.g. news ID) * @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 $width - appears to not be used
* @param unknown_type $subject * @param string $subject
* @param unknown_type $rate * @param boolean $rate
*/ */
function compose_comment($table, $action, $id, $width, $subject, $rate = FALSE, $return = FALSE, $tablerender = TRUE) function compose_comment($table, $action, $id, $width, $subject, $rate = FALSE, $return = FALSE, $tablerender = TRUE)
{ {

View File

@@ -380,7 +380,7 @@ class download
if ($dlrow['download_comment']) 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); $ret .= $ns->tablerender($comments['caption'], $comments['comment'].$comments['comment_form'], 'download-comments', true);
} }