diff --git a/ext/comment/main.php b/ext/comment/main.php index e7180efa..0cc84ce3 100644 --- a/ext/comment/main.php +++ b/ext/comment/main.php @@ -501,7 +501,10 @@ class CommentList extends Extension { "VALUES(:image_id, :user_id, :remote_addr, now(), :comment)", array("image_id"=>$image_id, "user_id"=>$user->id, "remote_addr"=>$_SERVER['REMOTE_ADDR'], "comment"=>$comment)); $cid = $database->get_last_insert_id(); - log_info("comment", "Comment #$cid added to Image #$image_id"); + $snippet = substr($comment, 0, 100); + $snippet = str_replace("\n", " ", $snippet); + $snippet = str_replace("\r", " ", $snippet); + log_info("comment", "Comment #$cid added to Image #$image_id: $snippet"); } } // }}}