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
strongarm
Commits
a244d12f
Commit
a244d12f
authored
Dec 16, 2009
by
young hahn
Browse files
Workaround for early bootstrap check of 'site_frontpage' variable.
parent
a2a28af6
Changes
1
Hide whitespace changes
Inline
Side-by-side
strongarm.module
View file @
a244d12f
...
...
@@ -6,6 +6,17 @@
*/
function
strongarm_init
()
{
strongarm_set_conf
();
// This is a workaround for the very early check of the 'site_frontpage'
// variable in the Drupal bootstrap process. The workaround re-runs
// drupal_init_path() to ensure the strongarm'ed version of
// 'site_frontpage' is used. Note that this may be too late if other modules
// weighted even lower than strongarm (which is a superlightweight -1000)
// rely on $_GET['q'] or 'site_frontpage' in hook_init().
if
(
empty
(
$_REQUEST
[
'q'
]))
{
unset
(
$_GET
[
'q'
]);
drupal_init_path
();
}
}
/**
...
...
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