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:
@@ -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)
|
||||||
{
|
{
|
||||||
|
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user