Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
cf14d26c
Commit
cf14d26c
authored
Jun 08, 2006
by
Dries
Browse files
- Patch
#65801
by Moshe et al: fixed locale initialization slowness.
parent
03dd2f9c
Changes
2
Hide whitespace changes
Inline
Side-by-side
includes/common.inc
View file @
cf14d26c
...
...
@@ -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'
);
}
/**
...
...
includes/module.inc
View file @
cf14d26c
...
...
@@ -7,14 +7,12 @@
*/
/**
*
Initialize
all modules.
*
Load
all
the
modules
that have been enabled in the system table
.
*/
function
module_init
()
{
// Load all the modules that have been enabled in the system table.
function
module_load_all
()
{
foreach
(
module_list
(
TRUE
,
FALSE
)
as
$module
)
{
drupal_load
(
'module'
,
$module
);
}
module_invoke_all
(
'init'
);
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment