summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-03-23 04:39:05 +0000
committerBill Marquette <billm@pfsense.org>2005-03-23 04:39:05 +0000
commitc3245cae0404c3f369286262a25d84eb3721926a (patch)
tree5af3775a7ca73d7e42157cd2c167eaff613b68fa
parentaa0d74da8809cc0856f13c95a95049579091fa7d (diff)
downloadpfsense-c3245cae0404c3f369286262a25d84eb3721926a.zip
pfsense-c3245cae0404c3f369286262a25d84eb3721926a.tar.gz
Fix config restore
-rwxr-xr-xusr/local/www/diag_backup.php4
1 files changed, 2 insertions, 2 deletions
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 {
OpenPOWER on IntegriCloud