diff --git a/install.php b/install.php index b52dfbbee7692390b7752328f20366208ba74a1e..981def2c8db31c1cfcf73b97943ed42882293989 100644 --- a/install.php +++ b/install.php @@ -615,8 +615,6 @@ function install_tasks($profile, $task) { if ($task == 'configure') { drupal_set_title(st('Configure site')); - // Build menu to allow clean URL check. - menu_rebuild(); // We break the form up so we can tell when it's been successfully // submitted. @@ -641,6 +639,8 @@ function install_tasks($profile, $task) { drupal_process_form('install_configure_form', $form, $form_state); if (empty($form_state['redirect'])) { + // Build menu to allow clean URL check. + menu_rebuild(); $output = drupal_render_form('install_configure_form', $form); } else {