diff options
author | Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> | 2006-03-09 21:59:43 +0000 |
---|---|---|
committer | Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> | 2006-03-09 21:59:43 +0000 |
commit | f1962e8fb1d55817924a4413dbc28dd19466d1a1 (patch) | |
tree | 2da802a68477bc9e0ca0053595075ccd2a9dded4 | |
parent | 9145ed128cc1537ffa5534ee602bf8da97a0847e (diff) | |
download | brdo-f1962e8fb1d55817924a4413dbc28dd19466d1a1.tar.gz brdo-f1962e8fb1d55817924a4413dbc28dd19466d1a1.tar.bz2 |
#52586, node preview broken with php5, patch by greggles
-rw-r--r-- | modules/node.module | 2 | ||||
-rw-r--r-- | modules/node/node.module | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/node.module b/modules/node.module index 364e86567..0d023bd88 100644 --- a/modules/node.module +++ b/modules/node.module @@ -1876,7 +1876,7 @@ function theme_node_preview($node) { if ($node->teaser && $node->teaser != $node->body) { drupal_set_message(t('The trimmed version of your post shows what your post looks like when promoted to the main page or when exported for syndication. You can insert the delimiter "<!--break-->" (without the quotes) to fine-tune where your post gets split.')); $output .= '<h3>'. t('Preview trimmed version') .'</h3>'; - $output .= node_view($node, 1, FALSE, 0); + $output .= node_view(drupal_clone($node), 1, FALSE, 0); $output .= '<h3>'. t('Preview full version') .'</h3>'; $output .= node_view($node, 0, FALSE, 0); } diff --git a/modules/node/node.module b/modules/node/node.module index 364e86567..0d023bd88 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1876,7 +1876,7 @@ function theme_node_preview($node) { if ($node->teaser && $node->teaser != $node->body) { drupal_set_message(t('The trimmed version of your post shows what your post looks like when promoted to the main page or when exported for syndication. You can insert the delimiter "<!--break-->" (without the quotes) to fine-tune where your post gets split.')); $output .= '<h3>'. t('Preview trimmed version') .'</h3>'; - $output .= node_view($node, 1, FALSE, 0); + $output .= node_view(drupal_clone($node), 1, FALSE, 0); $output .= '<h3>'. t('Preview full version') .'</h3>'; $output .= node_view($node, 0, FALSE, 0); } |