Projet

Général

Profil

Révision 01dfd3b5

Ajouté par Assos Assos il y a plus de 3 ans

Udpate to 7.77

Voir les différences:

drupal7/includes/menu.inc
1067 1067
    // the active class accordingly. But local tasks do not appear in menu
1068 1068
    // trees, so if the current path is a local task, and this link is its
1069 1069
    // tab root, then we have to set the class manually.
1070
    if ($data['link']['href'] == $router_item['tab_root_href'] && $data['link']['href'] != $_GET['q']) {
1070
    if ($router_item && $data['link']['href'] == $router_item['tab_root_href'] && $data['link']['href'] != $_GET['q']) {
1071 1071
      $data['link']['localized_options']['attributes']['class'][] = 'active';
1072 1072
    }
1073 1073

  

Formats disponibles : Unified diff