diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-01-04 16:19:39 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-01-04 16:19:39 +0000 |
commit | 27e01ade236fe2d65d9e7176d0c217b71963b5f5 (patch) | |
tree | 6983688be8668e36a1d75e8f1b4e9b59cfa51310 /includes | |
parent | fb2c693f0967456a7f9fd07711554686c8268289 (diff) | |
download | brdo-27e01ade236fe2d65d9e7176d0c217b71963b5f5.tar.gz brdo-27e01ade236fe2d65d9e7176d0c217b71963b5f5.tar.bz2 |
- Patch #350984 by Moshe: clean-up and bugfix of the 'kick comment rendering out of node module'.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/theme.inc | 4 |
1 files changed, 2 insertions, 2 deletions
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'])) { |