#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
parent
5dcacebf26
commit
6383dcc725
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue