summaryrefslogtreecommitdiff
path: root/includes/common.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-06-08 21:23:40 +0000
committerDries Buytaert <dries@buytaert.net>2006-06-08 21:23:40 +0000
commitcf14d26cff310c170ea73221b906be569d91ef03 (patch)
tree089215d987b1aadaf89f3fcf7ae359d8d39e0719 /includes/common.inc
parent03dd2f9c74534499862f5674f2f43aee9d64b41c (diff)
downloadbrdo-cf14d26cff310c170ea73221b906be569d91ef03.tar.gz
brdo-cf14d26cff310c170ea73221b906be569d91ef03.tar.bz2
- Patch #65801 by Moshe et al: fixed locale initialization slowness.
Diffstat (limited to 'includes/common.inc')
-rw-r--r--includes/common.inc9
1 files changed, 6 insertions, 3 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 01834ae70..3a13bdba6 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -1341,12 +1341,15 @@ function _drupal_bootstrap_full() {
drupal_set_header('Content-Type: text/html; charset=utf-8');
// Detect string handling method
unicode_check();
- // Initialize all enabled modules.
- module_init();
// Undo magic quotes
fix_gpc_magic();
- // Initialize the localization system.
+ // Load all enabled modules
+ module_load_all();
+ // Initialize the localization system. Depends on i18n.module being loaded already.
$locale = locale_initialize();
+ // Let all modules take action before menu system handles the reqest
+ module_invoke_all('init');
+
}
/**