diff --git a/update.php b/update.php index 41f86fd..e679cc1 100644 --- a/update.php +++ b/update.php @@ -411,8 +411,9 @@ if (empty($op) && update_access_allowed()) { // $GLOBALS['module_list']['foo']['filename'] = 'path/to/foo.module'; // to load modules like git deploy which alter system information. $module_list['system']['filename'] = 'modules/system/system.module'; - module_list(TRUE, FALSE, FALSE, $module_list); - drupal_load('module', 'system'); + foreach (module_list(TRUE, FALSE, FALSE, $module_list) as $module) { + drupal_load('module', $module); + } // Reset the module_implements() cache so that any new hook implementations // in updated code are picked up.