mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-18 14:38:27 +00:00
Auto reload the current menu when upgrading (#7693)
Reload the current loaded menu when using the Upgrade web interface
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user