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 /modules/comment/comment.module | |
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 'modules/comment/comment.module')
-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 44f648ca3..04ddc9d2d 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -495,7 +495,7 @@ function comment_nodeapi_view($node, $teaser) { ); // Append the list of comments to $node->content for node detail pages. - if ($node->comment && (bool)menu_get_object()) { + if ($node->comment && (bool)menu_get_object() && $node->build_mode != NODE_BUILD_PREVIEW) { $node->content['comments'] = array( '#markup' => comment_render($node), ); |