diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2011-07-18 01:04:29 -0700 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2011-07-18 01:04:29 -0700 |
commit | 116f8b6428eee4c0748c36f536f7c2155c0ad905 (patch) | |
tree | fbb94f9d59e1b9f4767f63177a7ea3b5c280e6f4 /includes/menu.inc | |
parent | 2a91ace4c14e77e41e18c92298d0cf1c87e4d474 (diff) | |
download | brdo-116f8b6428eee4c0748c36f536f7c2155c0ad905.tar.gz brdo-116f8b6428eee4c0748c36f536f7c2155c0ad905.tar.bz2 |
Issue #898634 by catch, alex_b, chx: Fixed install_drupal(): call to menu-touching functions results in SQL syntax error.
Diffstat (limited to 'includes/menu.inc')
-rw-r--r-- | includes/menu.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/includes/menu.inc b/includes/menu.inc index f23632510..5582c452e 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -431,6 +431,11 @@ function menu_get_item($path = NULL, $router_item = NULL) { $router_items[$path] = $router_item; } if (!isset($router_items[$path])) { + // 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(); + } $original_map = arg(NULL, $path); // Since there is no limit to the length of $path, use a hash to keep it @@ -490,11 +495,6 @@ function menu_execute_active_handler($path = NULL, $deliver = TRUE) { // Only continue if the site status is not set. if ($page_callback_result == MENU_SITE_ONLINE) { - // 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)) { if ($router_item['access']) { if ($router_item['include_file']) { |