Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
297
Merge Requests
297
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
cf14d26c
Commit
cf14d26c
authored
Jun 08, 2006
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#65801
by Moshe et al: fixed locale initialization slowness.
parent
03dd2f9c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
includes/common.inc
includes/common.inc
+6
-3
includes/module.inc
includes/module.inc
+2
-4
No files found.
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