From 719630a3ffa98e88f64a1e7aff835c0456775968 Mon Sep 17 00:00:00 2001 From: frytimo Date: Tue, 13 Jan 2026 00:33:55 -0400 Subject: [PATCH] Auto reload the current menu when upgrading (#7693) Reload the current loaded menu when using the Upgrade web interface --- core/upgrade/index.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/core/upgrade/index.php b/core/upgrade/index.php index 0652877395..73b096f44b 100644 --- a/core/upgrade/index.php +++ b/core/upgrade/index.php @@ -181,6 +181,17 @@ $included = true; require_once("core/menu/menu_restore_default.php"); unset($sel_menu); + + //unset the current session menu array + unset($_SESSION['menu']['array']); + + //get the menu array and save it to the session + $menu = new menu; + $menu->menu_uuid = $settings->get('domain', 'menu'); + $_SESSION['menu']['array'] = $menu->menu_array(); + unset($menu); + + //set language $text = $language->get(null, '/core/upgrade'); message::add($text['message-upgrade_menu'], null, $message_timeout); }