diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-01-04 16:15:54 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-01-04 16:15:54 +0000 |
commit | 70c1d777ea8c1137d5ec1ec12e70788bc6a569dc (patch) | |
tree | 500b7795e97cca43dae839b973bb291563310e72 | |
parent | 6690a4ec4cf75b2f18cc53bf67f011c1ecc45e15 (diff) | |
download | brdo-70c1d777ea8c1137d5ec1ec12e70788bc6a569dc.tar.gz brdo-70c1d777ea8c1137d5ec1ec12e70788bc6a569dc.tar.bz2 |
- Patch #353803 by dereine: minor performance optimization -- multiple calls to require_once.
-rw-r--r-- | includes/bootstrap.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 8b9038474..9e9e527a5 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -1359,10 +1359,10 @@ function drupal_get_schema($table = NULL, $rebuild = FALSE) { module_load_all_includes('install'); } + require_once DRUPAL_ROOT . '/includes/common.inc'; // Invoke hook_schema for all modules. foreach (module_implements('schema') as $module) { $current = module_invoke($module, 'schema'); - require_once DRUPAL_ROOT . '/includes/common.inc'; if (drupal_function_exists('_drupal_initialize_schema')) { _drupal_initialize_schema($module, $current); } |