diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-11-23 15:36:44 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-11-23 15:36:44 +0000 |
commit | 5c504cef288858235eae2436149e25fdcfc24f89 (patch) | |
tree | d66c990cd72ac6221c83a3ddbe1ccf1439b5631c /modules/system/system.admin.inc | |
parent | 2f0657bc3d39986aa5e1b6c3604fec3af4740a5b (diff) | |
download | brdo-5c504cef288858235eae2436149e25fdcfc24f89.tar.gz brdo-5c504cef288858235eae2436149e25fdcfc24f89.tar.bz2 |
#193366 by chx: rebuild caches when displaying the module admin screen, to avoid stale data in registries when the submission is handled
Diffstat (limited to 'modules/system/system.admin.inc')
-rw-r--r-- | modules/system/system.admin.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index 887bd92ba..ee89a2db4 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -566,6 +566,10 @@ function _system_is_incompatible(&$incompatible, $files, $file) { * The form array. */ function system_modules($form_state = array()) { + drupal_rebuild_theme_registry(); + node_types_rebuild(); + menu_rebuild(); + cache_clear_all('schema', 'cache'); // Get current list of modules. $files = module_rebuild_cache(); @@ -864,10 +868,6 @@ function system_modules_submit($form, &$form_state) { $current_module_list = module_list(TRUE, FALSE); if ($old_module_list != $current_module_list) { - drupal_rebuild_theme_registry(); - node_types_rebuild(); - menu_rebuild(); - cache_clear_all('schema', 'cache'); drupal_set_message(t('The configuration options have been saved.')); } |