summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-11-21 20:17:44 +0000
committerDries Buytaert <dries@buytaert.net>2004-11-21 20:17:44 +0000
commitb442fad027a7446aaa46068ecf180bc2c35b683c (patch)
tree0a2625ae4c334c7a341b3a8e320c9bbd4d800966 /modules
parent5f29fc9d0d4def8de7aeaef0af715320e74d1279 (diff)
downloadbrdo-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')
-rw-r--r--modules/comment.module2
-rw-r--r--modules/comment/comment.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/comment.module b/modules/comment.module
index fcf05d73a..08f9029ae 100644
--- a/modules/comment.module
+++ b/modules/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()) {
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()) {