summaryrefslogtreecommitdiff
path: root/export_gedcom.php
diff options
context:
space:
mode:
Diffstat (limited to 'export_gedcom.php')
-rw-r--r--export_gedcom.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/export_gedcom.php b/export_gedcom.php
index ea950751c6..e4f62ca8a0 100644
--- a/export_gedcom.php
+++ b/export_gedcom.php
@@ -52,7 +52,7 @@ print_simple_header(i18n::translate('Export'));
if ($export) {
$ged_id = get_id_from_gedcom($export);
- $filename = get_gedcom_setting($ged_id, 'path');
+ $filename = get_site_setting('INDEX_DIRECTORY').$export;
echo '<h1>', i18n::translate('Export'), '</h1>';
echo '<p>', htmlspecialchars(filename_decode($export)), ' => ', $filename, '</p>';
flush();
@@ -71,7 +71,7 @@ if ($export) {
$end = microtime(true);
fclose($gedout);
- unlink($filename);
+ @unlink($filename);
rename($filename.'.tmp', $filename);
$stat = stat($filename);
echo sprintf('<p>%d bytes, %0.3f seconds</p>', $stat['size'], $end-$start);