mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Disable display of Diagnostics->AutoConfigBackup menu item if config is restored from pfSense < 2.4.4
Fixed #8959
This commit is contained in:
parent
e7299fd8c5
commit
245bfa559b
@ -153,9 +153,11 @@ function return_ext_menu($section) {
|
||||
|
||||
if ((!empty($config['installedpackages']['package'])) && (!empty($config['installedpackages']['menu']))) {
|
||||
foreach ($config['installedpackages']['menu'] as $menu) {
|
||||
// print('Name: ' . $menu['name'] . ', Pkg category: ' . $menu['category'] . ', Section: ' . $section . '<br />');
|
||||
if ($menu['section'] == $section) {
|
||||
$ext_menu_entries[] = $menu;
|
||||
if ($menu['name'] != "AutoConfigBackup") { // AutoConfigBackup was moved to a built-in function
|
||||
// print('Name: ' . $menu['name'] . ', Pkg category: ' . $menu['category'] . ', Section: ' . $section . '<br />');
|
||||
if ($menu['section'] == $section) {
|
||||
$ext_menu_entries[] = $menu;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user