From 27e01ade236fe2d65d9e7176d0c217b71963b5f5 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 4 Jan 2009 16:19:39 +0000 Subject: - Patch #350984 by Moshe: clean-up and bugfix of the 'kick comment rendering out of node module'. --- includes/theme.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes') diff --git a/includes/theme.inc b/includes/theme.inc index 2d6b88964..b934462d6 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -1983,7 +1983,7 @@ function template_preprocess_node(&$variables) { $variables['name'] = theme('username', $node); $variables['node_url'] = url('node/' . $node->nid); $variables['title'] = check_plain($node->title); - $variables['page'] = (bool)menu_get_object(); + $variables['page'] = (bool)menu_get_object(); if ($node->build_mode == NODE_BUILD_PREVIEW) { unset($node->content['links']); @@ -1996,7 +1996,7 @@ function template_preprocess_node(&$variables) { $variables['links'] = !empty($node->content['links']) ? drupal_render($node->content['links']) : ''; // Render any comments. - $variables['comments'] = !empty($node->content['comments']) ? drupal_render($node->content['comments']) : ''; + $variables['comments'] = !empty($node->content['comments']) ? drupal_render($node->content['comments']) : ''; // Render the rest of the node into $content. if (!empty($node->content['teaser'])) { -- cgit v1.2.3