diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-01-23 14:23:27 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-01-23 14:23:27 +0000 |
commit | cf43ce126cf69bc08b10044c6f59a3e7768c72b2 (patch) | |
tree | 32833a8e513378ea77550caa0f3faff8fbde2472 /modules/comment/comment.module | |
parent | 887eecc796d53bdb4e3631381de7fa54543c2443 (diff) | |
download | brdo-cf43ce126cf69bc08b10044c6f59a3e7768c72b2.tar.gz brdo-cf43ce126cf69bc08b10044c6f59a3e7768c72b2.tar.bz2 |
- Patch #353632 by catch et al: avoid sorting elements twice -- performance improvement.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r-- | modules/comment/comment.module | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index da9ea6f35..913a1a548 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -498,6 +498,7 @@ function comment_nodeapi_view($node, $teaser) { if ($node->comment && (bool)menu_get_object() && $node->build_mode != NODE_BUILD_PREVIEW) { $node->content['comments'] = array( '#markup' => comment_render($node), + '#sorted' => TRUE, ); } } |