diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2007-01-05 22:01:02 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2007-01-05 22:01:02 +0000 |
commit | bd097f45fe20a494519c0d1b263d7cc3cf6743f2 (patch) | |
tree | 1e51f30b1df9571b4e627db0194f4b1401facdd7 /modules/node/node.module | |
parent | da55db28f93d1f86469c14b736055217e0879221 (diff) | |
download | brdo-bd097f45fe20a494519c0d1b263d7cc3cf6743f2.tar.gz brdo-bd097f45fe20a494519c0d1b263d7cc3cf6743f2.tar.bz2 |
Revert break tag.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index a4269a38a..dbd4dd3ab 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -146,7 +146,7 @@ function node_teaser($body, $format = NULL) { $size = variable_get('teaser_length', 600); // Find where the delimiter is in the body - $delimiter = strpos($body, '<break>'); + $delimiter = strpos($body, '<!--break-->'); // If the size is zero, and there is no delimiter, the entire body is the teaser. if ($size == 0 && $delimiter === FALSE) { @@ -738,7 +738,7 @@ function node_prepare($node, $teaser = FALSE) { */ function node_build_content($node, $teaser = FALSE, $page = FALSE) { // Remove the delimiter (if any) that separates the teaser from the body. - $node->body = str_replace('<break>', '', $node->body); + $node->body = str_replace('<!--break-->', '', $node->body); // The 'view' hook can be implemented to overwrite the default function // to display nodes. |