Projet

Général

Profil

Révision 582db59d

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

Update Drupal core to version 7.40

Voir les différences:

drupal7/modules/system/system.module
2411 2411
    // Merge in defaults and save.
2412 2412
    $modules[$key]->info = $module->info + $defaults;
2413 2413

  
2414
    // The "name" key is required, but to avoid a fatal error in the menu system
2415
    // we set a reasonable default if it is not provided.
2416
    $modules[$key]->info += array('name' => $key);
2417

  
2414 2418
    // Prefix stylesheets and scripts with module path.
2415 2419
    $path = dirname($module->uri);
2416 2420
    if (isset($module->info['stylesheets'])) {
......
2546 2550
    $themes[$key]->filename = $theme->uri;
2547 2551
    $themes[$key]->info = drupal_parse_info_file($theme->uri) + $defaults;
2548 2552

  
2553
    // The "name" key is required, but to avoid a fatal error in the menu system
2554
    // we set a reasonable default if it is not provided.
2555
    $themes[$key]->info += array('name' => $key);
2556

  
2549 2557
    // Add the info file modification time, so it becomes available for
2550 2558
    // contributed modules to use for ordering theme lists.
2551 2559
    $themes[$key]->info['mtime'] = filemtime($theme->uri);
......
2807 2815
function _system_sort_requirements($a, $b) {
2808 2816
  if (!isset($a['weight'])) {
2809 2817
    if (!isset($b['weight'])) {
2810
      return strcmp($a['title'], $b['title']);
2818
      return strcasecmp($a['title'], $b['title']);
2811 2819
    }
2812 2820
    return -$b['weight'];
2813 2821
  }

Formats disponibles : Unified diff