#194994 by gpk: the PHP format was moved to php/0 instead of filter/2 and this was not updated in the node teaser building code

6.x
Gábor Hojtsy 2007-11-24 21:02:24 +00:00
parent 5dcacebf26
commit 6383dcc725
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ function node_teaser($body, $format = NULL, $size = NULL) {
// parse errors.
if (isset($format)) {
$filters = filter_list_format($format);
if (isset($filters['filter/1']) && strpos($body, '<?') !== FALSE) {
if (isset($filters['php/0']) && strpos($body, '<?') !== FALSE) {
return $body;
}
}