Projet

Général

Profil

Révision cd5c298a

Ajouté par Geoffroy Desvernay il y a plus de 5 ans

MAJ 7.60 -> 7.62

Voir les différences:

drupal7/includes/module.inc
404 404
    // Create an associative array with weights as values.
405 405
    $module_list = array_flip(array_values($module_list));
406 406

  
407
    while (list($module) = each($module_list)) {
407
    // The array is iterated over manually (instead of using a foreach) because
408
    // modules may be added to the list within the loop and we need to process
409
    // them.
410
    while ($module = key($module_list)) {
411
      next($module_list);
408 412
      if (!isset($module_data[$module])) {
409 413
        // This module is not found in the filesystem, abort.
410 414
        return FALSE;
......
540 544
    $module_list = array_flip(array_values($module_list));
541 545

  
542 546
    $profile = drupal_get_profile();
543
    while (list($module) = each($module_list)) {
547
    // The array is iterated over manually (instead of using a foreach) because
548
    // modules may be added to the list within the loop and we need to process
549
    // them.
550
    while ($module = key($module_list)) {
551
      next($module_list);
544 552
      if (!isset($module_data[$module]) || !$module_data[$module]->status) {
545 553
        // This module doesn't exist or is already disabled, skip it.
546 554
        unset($module_list[$module]);

Formats disponibles : Unified diff