Skip to content
Snippets Groups Projects
Commit 0f284b37 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #113788 by chx: fix menu_rebuild position.

parent c13268f8
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -533,7 +533,6 @@ function install_complete($profile) {
// Bootstrap newly installed Drupal, while preserving existing messages.
$messages = $_SESSION['messages'];
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
menu_rebuild();
$_SESSION['messages'] = $messages;
// Build final page.
......@@ -548,6 +547,7 @@ function install_complete($profile) {
$profile_message = $function();
}
menu_rebuild();
// If the profile returned a welcome message, use that instead of default.
if (isset($profile_message)) {
$output .= $profile_message;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment