#80989, node_teaser can provide a better teaser, patch by fgm, backport from HEAD
parent
609efeb926
commit
1426834109
|
@ -165,7 +165,7 @@ function node_teaser($body, $format = NULL) {
|
|||
// parse errors.
|
||||
if (isset($format)) {
|
||||
$filters = filter_list_format($format);
|
||||
if (isset($filters['filter/1']) && strpos($body, '<?') !== FALSE) {
|
||||
if (isset($filters['filter/1']) && (strpos($body, '<?') !== FALSE) && (strpos($body, '<?') < $delimiter)) {
|
||||
return $body;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue