If someone chooses to use the <!--break--> to exactly state where they want there there break, node.module shouldn't ignore it. If an admin (or someone with similar privileges to post live php code) puts the break in the wrong spot, that's there own fault. It should be possible to have teasers even for nodes with live php content.

--- node.module 2005-04-11 12:39:40.000000000 -0400
+++ node.module 2005-04-28 01:29:07.000000000 -0400
@@ -168,7 +168,7 @@
   }

   // If the body contains PHP code, do not split it up to prevent parse errors.
-  if (strpos($body, '<?') != false) {
+  if ($delimeter ==0 && strpos($body, '<?') != false) {
     return $body;
   }

Comments

Aran Deltac’s picture

Woops, spelling error. Sorry. :)

--- node.module 2005-04-11 12:39:40.000000000 -0400
+++ node.module 2005-04-28 01:29:07.000000000 -0400
@@ -168,7 +168,7 @@
   }
   // If the body contains PHP code, do not split it up to prevent parse errors.
- if (strpos($body, '<?') != false) {
+ if ($delimiter ==0 && strpos($body, '<?') != false) {
     return $body;
   }
Steven’s picture

bwynants’s picture

I prefer a combination of this and the other fixe. I have php code and carefully placed < ! - - break - - > but no teaser is created with the other fix. In combination with this a teaser is created....