Commit 77e3126e authored by sun's avatar sun

#288028 by Matthew Davidson: Fixed outdated check for PHP input filter.

parent dfaf1762
......@@ -6,6 +6,7 @@ Wysiwyg x.x-x.x, xxxx-xx-xx
Wysiwyg 6.x-x.x, xxxx-xx-xx
---------------------------
#288028 by Matthew Davidson: Fixed outdated check for PHP input filter.
#280727 by sun: Removed gzip compressor from installation instructions.
by sun: Fixed JavaScript errors when JS aggregation/compression is enabled.
#268562 by sun: Code clean-up; changed format for custom defined CSS classes
......
......@@ -559,8 +559,11 @@ function _wysiwyg_editor_page_match($profile) {
// PHP input formats are #2 in the filters table.
if (arg(0) == 'node' && is_numeric(arg(1)) && arg(2) == 'edit') {
$node = node_load(arg(1));
if ($node->format == 2) {
return FALSE;
$filters = filter_list_format($node->format);
foreach ($filters as $filter) {
if ($filter->module == 'php') {
return FALSE;
}
}
}
......
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