Permalink
Browse files

- Fix path checking for node types that contain underscores.

  • Loading branch information...
1 parent 65437a7 commit d6ac6f5b2f7cf1cba2d74876505655ebd06fd3cf ufku committed Mar 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 bueditor.inc
View
@@ -222,7 +222,7 @@ function bueditor_check_page($page, $editor) {
}
if (arg(0) == 'node' && arg(2) == 'edit') {
$node = node_load(arg(1));
- if ($node && drupal_match_path('node/add/' . $node->type, $editor->pages)) {
+ if ($node && drupal_match_path('node/add/' . str_replace('_', '-', $node->type), $editor->pages)) {
return $editor;
}
}

0 comments on commit d6ac6f5

Please sign in to comment.