Closed (duplicate)
Project:
Drupal core
Version:
4.6.0
Component:
node system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Apr 2005 at 05:52 UTC
Updated:
2 Jun 2005 at 10:28 UTC
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
Comment #1
Aran Deltac commentedWoops, spelling error. Sorry. :)
Comment #2
Steven commentedThere is a much better fix for this problem.
Comment #3
bwynants commentedI 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....