Commit 34ec8f98 authored by webchick's avatar webchick
Browse files

#261148 by chx and pwolanin: Allow recovery from a failed menu build.

parent 39fad4e7
......@@ -387,7 +387,9 @@ function menu_execute_active_handler($path = NULL) {
if (_menu_site_is_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())) {
if ($router_item = menu_get_item($path)) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment