1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

Merge pull request #3159 from SimSync/issue_3135

Fixes #3154 Comments not refreshing on submission
This commit is contained in:
Cameron
2018-06-02 12:45:28 -07:00
committed by GitHub

View File

@@ -140,7 +140,12 @@ if(e_AJAX_REQUEST) // TODO improve security
$width = ($pid) ? 1 : 0;
$ret['html'] = "\n<!-- Appended -->\n<li>";
$ret['html'] .= e107::getComment()->render_comment($row,'comments','comment',intval($_POST['itemid']),$width);
/**
* Fix for issue e107inc/e107#3154 (Comments not refreshing on submission)
* Missing 6th argument ($subject) caused an exception
*/
$ret['html'] .= e107::getComment()->render_comment($row,'comments','comment',intval($_POST['itemid']),$width, $tp->toDB($clean_subject));
$ret['html'] .= "</li>\n<!-- end Appended -->\n";
$ret['error'] = false;