summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJennifer Hodgdon2013-05-08 13:42:56 (GMT)
committerJennifer Hodgdon2013-05-08 13:42:56 (GMT)
commitd9ac5b6c811aa24719143474bcf0fa1b07165af2 (patch)
treed70bd0916407653cc12c843e64c4b98134994447
parent9ec703eb65e1477538a1f20c05b5e6a0d0079c86 (diff)
Issue #1204784 by Kevin Morse, valthebald, druplet, kiamlaluno: Fix code comment in drupal_retrieve_form
-rw-r--r--core/includes/form.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/includes/form.inc b/core/includes/form.inc
index 13e3e83..0616ebf 100644
--- a/core/includes/form.inc
+++ b/core/includes/form.inc
@@ -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'])) {