From 7e036443a3d28f5d06a2c1cde46a4221d38c9fd6 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 21 Mar 2005 19:31:38 +0000 Subject: Pass correct amount of paramaters to unlink --- usr/local/www/diag_backup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/local') diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php index 6fc8df1..6ee1015 100755 --- a/usr/local/www/diag_backup.php +++ b/usr/local/www/diag_backup.php @@ -76,7 +76,7 @@ if ($_POST) { header("Content-Disposition: attachment; filename=$fn"); header("Content-Length: $fs"); readfile($g['tmp_path'] . "/backup_section.txt","w"); - unlink($g['tmp_path'] . "/backup_section.txt","w"); + unlink($g['tmp_path'] . "/backup_section.txt"); } else { $fs = filesize($g['conf_path'] . "/config.xml"); header("Content-Type: application/octet-stream"); -- cgit v1.1