Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
34ec8f98
Commit
34ec8f98
authored
Oct 08, 2008
by
webchick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#261148
by chx and pwolanin: Allow recovery from a failed menu build.
parent
39fad4e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
includes/menu.inc
includes/menu.inc
+3
-1
No files found.
includes/menu.inc
View file @
34ec8f98
...
...
@@ -387,7 +387,9 @@ function menu_execute_active_handler($path = NULL) {
if
(
_menu_site_is_offline
())
{
return
MENU_SITE_OFFLINE
;
}
if
(
variable_get
(
'menu_rebuild_needed'
,
FALSE
))
{
// Rebuild if we know it's needed, or if the menu masks are missing which
// occurs rarely, likely due to a race condition of multiple rebuilds.
if
(
variable_get
(
'menu_rebuild_needed'
,
FALSE
)
||
!
variable_get
(
'menu_masks'
,
array
()))
{
menu_rebuild
();
}
if
(
$router_item
=
menu_get_item
(
$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