diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-12-04 22:48:06 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-12-04 22:48:06 +0000 |
commit | dcc3e2418833f75c59eacf86b907255830cc832d (patch) | |
tree | 873b3dd92d42c9642d569091b8bd1113b8b1180d /modules/node/node.module | |
parent | 451a90645b538c603d4028d4ee77729d516e5cce (diff) | |
download | brdo-dcc3e2418833f75c59eacf86b907255830cc832d.tar.gz brdo-dcc3e2418833f75c59eacf86b907255830cc832d.tar.bz2 |
- Fixed bug #4457: make sure to cut of the teaser after the </p> tag, not
before the </p> tag.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index a564c0c30..68fd4d864 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -177,15 +177,15 @@ function node_teaser($body) { ** we try to split at paragraph boundaries. */ - if ($length = strpos($body, "<br />", $size)) { - return substr($body, 0, $length); + if ($length = strpos($body, "</p>", $size)) { + return substr($body, 0, $length + 4); } - if ($length = strpos($body, "<br>", $size)) { + if ($length = strpos($body, "<br />", $size)) { return substr($body, 0, $length); } - if ($length = strpos($body, "</p>", $size)) { + if ($length = strpos($body, "<br>", $size)) { return substr($body, 0, $length); } |