Commit 6383dcc7 authored by Gábor Hojtsy's avatar Gábor Hojtsy

#194994 by gpk: the PHP format was moved to php/0 instead of filter/2 and this...

#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 5dcacebf
......@@ -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;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment