diff options
author | Colin Smith <colin@pfsense.org> | 2005-08-03 07:15:38 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-08-03 07:15:38 +0000 |
commit | 7822d9660ccf2116b3377fefb4c23f680bb648b4 (patch) | |
tree | 824a83c4c2d47201e1679693487e01fbc68cf2aa /usr/local/www | |
parent | 909d8f12bfb6bcf7497eacc684ebdd16ee4d4109 (diff) | |
download | pfsense-7822d9660ccf2116b3377fefb4c23f680bb648b4.zip pfsense-7822d9660ccf2116b3377fefb4c23f680bb648b4.tar.gz |
return_filename_as_string -> file_get_contents
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/diag_backup.php | 4 |
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 +?> |