From c3245cae0404c3f369286262a25d84eb3721926a Mon Sep 17 00:00:00 2001 From: Bill Marquette Date: Wed, 23 Mar 2005 04:39:05 +0000 Subject: Fix config restore --- usr/local/www/diag_backup.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr/local') diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php index f7fca8c..677660d 100755 --- a/usr/local/www/diag_backup.php +++ b/usr/local/www/diag_backup.php @@ -129,10 +129,10 @@ if ($_POST) { fwrite($fd, $upgradedconfig); fclose($fd); } - if($_POST['restorearea'] <> "") { + if($_POST['backuparea'] <> "") { /* restore a specific area of the configuration */ $rules = return_filename_as_string($_FILES['conffile']['tmp_name']); - restore_config_section($_POST['restorearea'], $rules); + restore_config_section($_POST['backuparea'], $rules); filter_configure(); $savemsg = "The configuration area has been restored."; } else { -- cgit v1.1