1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 11:50:30 +02:00

Comment fixes. Problem remains with SEF Urls

This commit is contained in:
Cameron
2013-03-29 15:31:03 -07:00
parent 9dbb631c1c
commit 11589d6f9e
6 changed files with 35 additions and 19 deletions

View File

@@ -113,7 +113,7 @@ if(e_AJAX_REQUEST) // TODO improve security
$_SESSION['comment_author_name'] = $clean_authorname;
$row['comment_pid'] = $pid;
$row['comment_item_id'] = intval($_POST['itemid']);
$row['comment_type'] = e107::getComment()->getCommentType($tp->toDB($_POST['table'],true));
$row['comment_subject'] = $tp->toDB($_POST['subject']);
@@ -135,7 +135,7 @@ if(e_AJAX_REQUEST) // TODO improve security
{
$row['comment_id'] = $newid;
$width = ($pid) ? 5 : 0;
$width = ($pid) ? 1 : 0;
$ret['html'] = "\n<!-- Appended -->\n";
$ret['html'] .= e107::getComment()->render_comment($row,'comments','comment',intval($_POST['itemid']),$width);