summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-08-03 07:15:38 +0000
committerColin Smith <colin@pfsense.org>2005-08-03 07:15:38 +0000
commit7822d9660ccf2116b3377fefb4c23f680bb648b4 (patch)
tree824a83c4c2d47201e1679693487e01fbc68cf2aa /usr/local/www
parent909d8f12bfb6bcf7497eacc684ebdd16ee4d4109 (diff)
downloadpfsense-7822d9660ccf2116b3377fefb4c23f680bb648b4.zip
pfsense-7822d9660ccf2116b3377fefb4c23f680bb648b4.tar.gz
return_filename_as_string -> file_get_contents
Diffstat (limited to 'usr/local/www')
-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 2ecdfad..c4ec1e2 100755
--- a/usr/local/www/diag_backup.php
+++ b/usr/local/www/diag_backup.php
@@ -131,7 +131,7 @@ if ($_POST) {
}
if($_POST['restorearea'] <> "") {
/* restore a specific area of the configuration */
- $rules = return_filename_as_string($_FILES['conffile']['tmp_name']);
+ $rules = file_get_contents($_FILES['conffile']['tmp_name']);
restore_config_section($_POST['restorearea'], $rules);
filter_configure();
$savemsg = "The configuration area has been restored.";
@@ -267,4 +267,4 @@ if($reloadall == true) {
reload_all();
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud