diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-05-24 05:07:35 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-05-24 05:07:35 +0000 |
commit | 526291047a83eb14d4b006cdb356bde0fafec5b7 (patch) | |
tree | fb014b8753559ca3c7cb1d422bff7e329028c2f7 /usr/local/www | |
parent | da55e467dde94534c6ac83cee329d9800b07467c (diff) | |
download | pfsense-526291047a83eb14d4b006cdb356bde0fafec5b7.zip pfsense-526291047a83eb14d4b006cdb356bde0fafec5b7.tar.gz |
Honor URL and clear old contents correctly
Diffstat (limited to 'usr/local/www')
-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(); } |