Revert break tag.
parent
da55db28f9
commit
bd097f45fe
|
@ -146,7 +146,7 @@ function node_teaser($body, $format = NULL) {
|
||||||
$size = variable_get('teaser_length', 600);
|
$size = variable_get('teaser_length', 600);
|
||||||
|
|
||||||
// Find where the delimiter is in the body
|
// 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 the size is zero, and there is no delimiter, the entire body is the teaser.
|
||||||
if ($size == 0 && $delimiter === FALSE) {
|
if ($size == 0 && $delimiter === FALSE) {
|
||||||
|
@ -738,7 +738,7 @@ function node_prepare($node, $teaser = FALSE) {
|
||||||
*/
|
*/
|
||||||
function node_build_content($node, $teaser = FALSE, $page = FALSE) {
|
function node_build_content($node, $teaser = FALSE, $page = FALSE) {
|
||||||
// Remove the delimiter (if any) that separates the teaser from the body.
|
// 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
|
// The 'view' hook can be implemented to overwrite the default function
|
||||||
// to display nodes.
|
// to display nodes.
|
||||||
|
|
Loading…
Reference in New Issue