diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-11-23 03:20:17 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-11-23 03:20:17 +0000 |
commit | 729a23e1a4d062cfcc821ddebd6ffd4631fa360d (patch) | |
tree | 0158930c1064ad6aa1db44123803e1bf43211da2 /update.php | |
parent | 7aab0ab3680734e2973ce66da5486e1e6f233605 (diff) | |
download | brdo-729a23e1a4d062cfcc821ddebd6ffd4631fa360d.tar.gz brdo-729a23e1a4d062cfcc821ddebd6ffd4631fa360d.tar.bz2 |
- Patch #922788 by sun: update.php does not invoke hook_requirements()('update') in all modules.
Diffstat (limited to 'update.php')
-rw-r--r-- | update.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/update.php b/update.php index a9bc48b8d..1dd7cd618 100644 --- a/update.php +++ b/update.php @@ -308,8 +308,8 @@ function update_extra_requirements($requirements = NULL) { * Check update requirements and report any errors. */ function update_check_requirements() { - // Check the system module and update.php requirements only. - $requirements = module_invoke('system', 'requirements', 'update'); + // Check requirements of all loaded modules. + $requirements = module_invoke_all('requirements', 'update'); $requirements += update_extra_requirements(); $severity = drupal_requirements_severity($requirements); @@ -398,6 +398,9 @@ if (update_access_allowed()) { update_fix_compatibility(); + // Check the update requirements for all modules. + update_check_requirements(); + $op = isset($_REQUEST['op']) ? $_REQUEST['op'] : ''; switch ($op) { // update.php ops. |