Commit d9ac5b6c authored by jhodgdon's avatar jhodgdon

Issue #1204784 by Kevin Morse, valthebald, druplet, kiamlaluno: Fix code...

Issue #1204784 by Kevin Morse, valthebald, druplet, kiamlaluno: Fix code comment in drupal_retrieve_form
parent 9ec703eb
......@@ -769,8 +769,9 @@ function drupal_retrieve_form($form_id, &$form_state) {
// Record the filepath of the include file containing the original form, so
// the form builder callbacks can be loaded when the form is being rebuilt
// from cache on a different path (such as 'system/ajax'). See
// form_get_cache().
// $menu_get_item() is not available at installation time.
// form_get_cache(). Don't do this in maintenance mode as Drupal may not be
// fully bootstrapped (i.e. during installation) in which case
// menu_get_item() is not available.
if (!isset($form_state['build_info']['files']['menu']) && !defined('MAINTENANCE_MODE')) {
$item = menu_get_item();
if (!empty($item['include_file'])) {
......
Markdown is supported
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