diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-03-10 11:21:27 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-03-10 11:21:27 +0000 |
commit | 0bbc3bfcb30002af4a66511067353991e5c085f4 (patch) | |
tree | 36de2bdb662b4ca42536f1b036f0e64392af6fc0 | |
parent | e7c7ee32a21dae1dac9a5ee7b1fd429fd1faa0da (diff) | |
download | brdo-0bbc3bfcb30002af4a66511067353991e5c085f4.tar.gz brdo-0bbc3bfcb30002af4a66511067353991e5c085f4.tar.bz2 |
- Patch #395086 by Freso: tiny performance optimization.
-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 0e26c0537..177518c34 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -1699,7 +1699,7 @@ function _comment_form_submit(&$comment_values) { // 2) Strip out all HTML tags // 3) Convert entities back to plain-text. // Note: format is checked by check_markup(). - $comment_values['subject'] = trim(truncate_utf8(decode_entities(strip_tags(check_markup($comment_values['comment'], $comment_values['comment_format']))), 29, TRUE)); + $comment_values['subject'] = truncate_utf8(trim(decode_entities(strip_tags(check_markup($comment_values['comment'], $comment_values['comment_format'])))), 29, TRUE); // Edge cases where the comment body is populated only by HTML tags will // require a default subject. if ($comment_values['subject'] == '') { |