diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-11-21 20:17:44 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-11-21 20:17:44 +0000 |
commit | b442fad027a7446aaa46068ecf180bc2c35b683c (patch) | |
tree | 0a2625ae4c334c7a341b3a8e320c9bbd4d800966 /modules/comment/comment.module | |
parent | 5f29fc9d0d4def8de7aeaef0af715320e74d1279 (diff) | |
download | brdo-b442fad027a7446aaa46068ecf180bc2c35b683c.tar.gz brdo-b442fad027a7446aaa46068ecf180bc2c35b683c.tar.bz2 |
- Patch #13263 and #13265 by arnab: added word-based truncation and made the comment module use it to extract subjects.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r-- | modules/comment/comment.module | 2 |
1 files changed, 1 insertions, 1 deletions
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()) { |