Projet

Général

Profil

Révision 7547bb19

Ajouté par Assos Assos il y a environ 7 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/themes/bootstrap/templates/menu/menu-local-task.func.php
25 25
  $link = $variables['element']['#link'];
26 26

  
27 27
  $options = isset($link['localized_options']) ? $link['localized_options'] : array();
28
  $title = $link['title'];
28

  
29
  // Filter the title if the "html" is not set, otherwise l() will automatically
30
  // sanitize using check_plain(), so no need to call that here.
31
  $title = empty($options['html']) ? filter_xss_admin($link['title']) : $link['title'];
32

  
29 33
  $href = $link['href'];
30 34
  $attributes = array();
31 35

  
......
39 43
    ));
40 44
  }
41 45

  
42
  // Filter the title if the "html" is set, otherwise l() will automatically
43
  // sanitize using check_plain(), so no need to call that here.
44
  if (!empty($options['html'])) {
45
    $title = _bootstrap_filter_xss($title);
46
  }
47

  
48 46
  return '<li' . drupal_attributes($attributes) . '>' . l($title, $href, $options) . "</li>\n";
49 47
}

Formats disponibles : Unified diff