From b442fad027a7446aaa46068ecf180bc2c35b683c Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 21 Nov 2004 20:17:44 +0000 Subject: - Patch #13263 and #13265 by arnab: added word-based truncation and made the comment module use it to extract subjects. --- modules/comment/comment.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/comment/comment.module') diff --git a/modules/comment/comment.module b/modules/comment/comment.module index fcf05d73a..08f9029ae 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -494,7 +494,7 @@ function comment_post($edit) { $edit['subject'] = strip_tags($edit['subject']); if ($edit['subject'] == '') { - $edit['subject'] = truncate_utf8(strip_tags($edit['comment']), 29); + $edit['subject'] = truncate_utf8(strip_tags($edit['comment']), 29, TRUE); } if (!form_get_errors()) { -- cgit v1.2.3