summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDries Buytaert2003-07-21 15:42:28 +0000
committerDries Buytaert2003-07-21 15:42:28 +0000
commit7599a8c0dbf7deb915e3efec02ba85de0228b40e (patch)
treeed48da180487e3756c85187a9c195f2c82666bee
parent095179ee8d6effff5b3f1c3c708a2d894c0c45dd (diff)
- Changed the order of the checks in node_teaser(). Patch from Kobus.
(Committing this in order not to break sites later.)
-rw-r--r--modules/node.module16
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/node.module b/modules/node.module
index a8e59ce..7e3a75f 100644
--- a/modules/node.module
+++ b/modules/node.module
@@ -127,14 +127,6 @@ function node_teaser($body) {
}
/*
- ** If we have a short body, return the entire body:
- */
-
- if (strlen($body) < $size) {
- return $body;
- }
-
- /*
** If a valid delimiter has been specified, use it to
** chop of the teaser. The delimiter can be outside
** the allowed range but no more than a factor two.
@@ -146,6 +138,14 @@ function node_teaser($body) {
}
/*
+ ** If we have a short body, return the entire body:
+ */
+
+ if (strlen($body) < $size) {
+ return $body;
+ }
+
+ /*
** In some cases no delimiter has been specified (eg.
** when posting using the Blogger API) in which case
** we try to split at paragraph boundaries.