Commit ffa0074f authored by Robert Allerstorfer's avatar Robert Allerstorfer Committed by Chris Burgess
Browse files

Issue #1149304. Handle menu entries with HTML added (resolves conflict with Menu HTML module).

parent 02bf307c
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -338,11 +338,12 @@ function menu_breadcrumb_init() {
  $breadcrumb = drupal_get_breadcrumb();

  if (variable_get('menu_breadcrumb_append_node_title', 0) == 1) {
    $node_title = filter_xss(menu_get_active_title(), array());
    if (variable_get('menu_breadcrumb_append_node_url', 0) == 1) {
      $breadcrumb[] = $is_front ? l(t('Home'), '<front>') : l(drupal_get_title(), $_GET['q'], array('html' => TRUE,));
      $breadcrumb[] = $is_front ? l(t('Home'), '<front>') : l($node_title, $_GET['q'], array('html' => TRUE,));
    }
    else {
      $breadcrumb[] = $is_front ? t('Home') : drupal_get_title();
      $breadcrumb[] = $is_front ? t('Home') : $node_title;
    }
  }