diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-12-28 10:48:51 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-12-28 10:48:51 +0000 |
commit | 98b84b7adbf2dfee104167e4014ecd03fb965fff (patch) | |
tree | 26cb9cae9a031dbf63659e55a5d2c6fb54411378 /includes/registry.inc | |
parent | d24e2c1384d66ceb6ba5db7dae6b36f5f3ddfd31 (diff) | |
download | brdo-98b84b7adbf2dfee104167e4014ecd03fb965fff.tar.gz brdo-98b84b7adbf2dfee104167e4014ecd03fb965fff.tar.bz2 |
- Patch #661420 by justinrandell, David_Rothstein: made installation of modules much more efficient.
Diffstat (limited to 'includes/registry.inc')
-rw-r--r-- | includes/registry.inc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/includes/registry.inc b/includes/registry.inc index be7154851..16b869b76 100644 --- a/includes/registry.inc +++ b/includes/registry.inc @@ -17,9 +17,9 @@ */ /** - * @see registry_rebuild. + * @see registry_update(). */ -function _registry_rebuild() { +function _registry_update() { // The registry serves as a central autoloader for all classes, including // the database query builders. However, the registry rebuild process @@ -35,11 +35,12 @@ function _registry_rebuild() { require_once DRUPAL_ROOT . '/includes/database/' . $driver . '/query.inc'; // Get current list of modules and their files. - $modules = system_rebuild_module_data(); + $modules = db_query("SELECT * FROM {system} WHERE type = 'module'")->fetchAll(); // Get the list of files we are going to parse. $files = array(); foreach ($modules as &$module) { - $dir = dirname($module->uri); + $module->info = unserialize($module->info); + $dir = dirname($module->filename); // Store the module directory for use in hook_registry_files_alter(). $module->dir = $dir; |