summaryrefslogtreecommitdiff
path: root/modules/comment
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-01-23 14:23:27 +0000
committerDries Buytaert <dries@buytaert.net>2009-01-23 14:23:27 +0000
commitcf43ce126cf69bc08b10044c6f59a3e7768c72b2 (patch)
tree32833a8e513378ea77550caa0f3faff8fbde2472 /modules/comment
parent887eecc796d53bdb4e3631381de7fa54543c2443 (diff)
downloadbrdo-cf43ce126cf69bc08b10044c6f59a3e7768c72b2.tar.gz
brdo-cf43ce126cf69bc08b10044c6f59a3e7768c72b2.tar.bz2
- Patch #353632 by catch et al: avoid sorting elements twice -- performance improvement.
Diffstat (limited to 'modules/comment')
-rw-r--r--modules/comment/comment.module1
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,
);
}
}