Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- Fix path checking for node types that contain underscores.

  • Loading branch information...
commit d6ac6f5b2f7cf1cba2d74876505655ebd06fd3cf 1 parent 65437a7
ufku authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  bueditor.inc
View
2  bueditor.inc
@@ -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;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.