mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Revert config version to 15.8 and remove upgrade script
This commit is contained in:
parent
ef68bfa699
commit
d800d0f5ba
@ -105,7 +105,7 @@ $g = array(
|
||||
"disablecrashreporter" => false,
|
||||
"crashreporterurl" => "https://crashreporter.pfsense.org/crash_reporter.php",
|
||||
"debug" => false,
|
||||
"latest_config" => "15.9",
|
||||
"latest_config" => "15.8",
|
||||
"nopkg_platforms" => array("cdrom"),
|
||||
"minimum_ram_warning" => "101",
|
||||
"minimum_ram_warning_text" => "128 MB",
|
||||
|
||||
@ -5057,38 +5057,4 @@ function upgrade_157_to_158() {
|
||||
}
|
||||
}
|
||||
|
||||
/* Force the Netgate Services and Support widget to be active on upgrade.
|
||||
New widget is added at the top of column 2 */
|
||||
function upgrade_158_to_159() {
|
||||
global $config;
|
||||
|
||||
if (strpos($config['widgets']['sequence'], 'netgate_services_and_support') === false) {
|
||||
|
||||
$widgets = explode(",", $config['widgets']['sequence']);
|
||||
$cnt = count($widgets);
|
||||
$col2 = $cnt;
|
||||
$newsequence = array();
|
||||
|
||||
// Locate the firt column 2 widget
|
||||
for ($idx=0;$idx<$cnt;$idx++) {
|
||||
if (strpos($widgets[$idx], 'col2') !== false) {
|
||||
$col2 = $idx;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Loop through the widgets inserting the new widget before the first col2 widget
|
||||
for ($old=0,$new=0;$old<$cnt;$old++,$new++) {
|
||||
$newsequence[$new] = $widgets[$old];
|
||||
|
||||
if ($old == ($col2 - 1)) {
|
||||
$new++;
|
||||
$newsequence[$new] = "netgate_services_and_support:col2:open:0";
|
||||
}
|
||||
}
|
||||
|
||||
$config['widgets']['sequence'] = implode(",", $newsequence);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user