Skip to content

Commit

Permalink
TWEAK: Removed $now=date("Y-m-d") and put date function in filename l…
Browse files Browse the repository at this point in the history
…ine.

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@1060 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Jun 2, 2004
1 parent fcb25d4 commit 983b408
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/dumpdb.php
Expand Up @@ -19,8 +19,8 @@
$export .= defdump($table);
$export .= datadump($table);
}
$now=date("Y-m-d");
$file_name = "PHPSurveyor_{$databasename}_dump_$now.sql";

$file_name = "PHPSurveyor_{$databasename}_dump_".date("Y-m-d").".sql";
Header("Content-type: application/octet-stream");
Header("Content-Disposition: attachment; filename=$file_name");
echo $export;
Expand Down

0 comments on commit 983b408

Please sign in to comment.