diff options
-rwxr-xr-x | usr/local/www/system_firmware_check.php | 2 | ||||
-rwxr-xr-x | usr/local/www/system_firmware_settings.php | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/usr/local/www/system_firmware_check.php b/usr/local/www/system_firmware_check.php index 4298991..308bdc4 100755 --- a/usr/local/www/system_firmware_check.php +++ b/usr/local/www/system_firmware_check.php @@ -114,6 +114,8 @@ update_output_window($static_text); if(isset($curcfg['alturl']['enable'])) $updater_url = "{$config['system']['firmware']['alturl']['firmwareurl']}"; +else + $updater_url = "${g['update_url']}"; update_status("Downloading current version information..."); $latest_version = download_file_with_progress_bar("{$updater_url}/version", "/tmp/{$g['product_name']}_version"); diff --git a/usr/local/www/system_firmware_settings.php b/usr/local/www/system_firmware_settings.php index a620fcd..9f7d32f 100755 --- a/usr/local/www/system_firmware_settings.php +++ b/usr/local/www/system_firmware_settings.php @@ -37,6 +37,8 @@ if ($_POST) { } else { unset($config['system']['firmware']['alturl']['enable']); unset($config['system']['firmware']['alturl']['firmwareurl']); + unset($config['system']['firmware']['alturl']); + unset($config['system']['firmware']); } write_config(); } |