diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-08-08 20:04:38 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-08-08 20:04:38 +0000 |
commit | 1163703917828fe47dc6d51eae70a044cd38b3aa (patch) | |
tree | 052f4d5b7b323d36a6d76804b6f73af808e0644d /includes | |
parent | d713b11adbd11e6704cabbb52a8c349277fac407 (diff) | |
download | brdo-1163703917828fe47dc6d51eae70a044cd38b3aa.tar.gz brdo-1163703917828fe47dc6d51eae70a044cd38b3aa.tar.bz2 |
#152926 by dww: Fix hook_system_info_alter() to save the altered data not the original
Diffstat (limited to 'includes')
-rw-r--r-- | includes/module.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/module.inc b/includes/module.inc index 242b6c560..361e8b084 100644 --- a/includes/module.inc +++ b/includes/module.inc @@ -138,13 +138,13 @@ function module_rebuild_cache() { // Update the contents of the system table: if (isset($file->status) || (isset($file->old_filename) && $file->old_filename != $file->filename)) { - db_query("UPDATE {system} SET info = '%s', name = '%s', filename = '%s', bootstrap = %d WHERE filename = '%s'", serialize($file->info), $file->name, $file->filename, $bootstrap, $file->old_filename); + db_query("UPDATE {system} SET info = '%s', name = '%s', filename = '%s', bootstrap = %d WHERE filename = '%s'", serialize($files[$filename]->info), $file->name, $file->filename, $bootstrap, $file->old_filename); } else { // This is a new module. $files[$filename]->status = 0; $files[$filename]->throttle = 0; - db_query("INSERT INTO {system} (name, info, type, filename, status, throttle, bootstrap) VALUES ('%s', '%s', '%s', '%s', %d, %d, %d)", $file->name, serialize($file->info), 'module', $file->filename, 0, 0, $bootstrap); + db_query("INSERT INTO {system} (name, info, type, filename, status, throttle, bootstrap) VALUES ('%s', '%s', '%s', '%s', %d, %d, %d)", $file->name, serialize($files[$filename]->info), 'module', $file->filename, 0, 0, $bootstrap); } } $files = _module_build_dependents($files); |