Commit c3119d1f authored by Dries's avatar Dries

- My filter commit accidentically broke the comment submission which is now
  fixed.  Patch by Al.
parent 3f2dd954
......@@ -160,6 +160,10 @@ function comment_reply($pid, $nid) {
function comment_preview($edit) {
global $user;
foreach ($edit as $key => $value) {
$comment->$key = $value;
}
/*
** Attach the user and time information:
*/
......@@ -359,7 +363,7 @@ function comment_view($comment, $links = "", $visible = 1) {
print "<a name=\"$comment->cid\"></a>\n";
if ($visible) {
$comment->comment = check_output($comment);
$comment->comment = check_output($comment->comment);
theme("comment", $comment, $links);
}
else {
......
......@@ -160,6 +160,10 @@ function comment_reply($pid, $nid) {
function comment_preview($edit) {
global $user;
foreach ($edit as $key => $value) {
$comment->$key = $value;
}
/*
** Attach the user and time information:
*/
......@@ -359,7 +363,7 @@ function comment_view($comment, $links = "", $visible = 1) {
print "<a name=\"$comment->cid\"></a>\n";
if ($visible) {
$comment->comment = check_output($comment);
$comment->comment = check_output($comment->comment);
theme("comment", $comment, $links);
}
else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment