summaryrefslogtreecommitdiff
path: root/admin_trees_download.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin_trees_download.php')
-rw-r--r--admin_trees_download.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/admin_trees_download.php b/admin_trees_download.php
index 150c03fc92..88927a0f26 100644
--- a/admin_trees_download.php
+++ b/admin_trees_download.php
@@ -24,6 +24,7 @@ namespace Fisharebest\Webtrees;
global $WT_TREE;
use Fisharebest\Webtrees\Controller\PageController;
+use Fisharebest\Webtrees\Functions\FunctionsExport;
use PclZip;
define('WT_SCRIPT_NAME', 'admin_trees_download.php');
@@ -66,7 +67,7 @@ if ($action === 'download') {
// Create the unzipped GEDCOM on disk, so we can ZIP it.
$stream = fopen($temp_dir . $download_filename, "w");
- export_gedcom($WT_TREE, $stream, $exportOptions);
+ FunctionsExport::exportGedcom($WT_TREE, $stream, $exportOptions);
fclose($stream);
// Create a ZIP file containing the GEDCOM file.
@@ -88,7 +89,7 @@ if ($action === 'download') {
// Stream the GEDCOM file straight to the browser.
// We could open "php://compress.zlib" to create a .gz file or "php://compress.bzip2" to create a .bz2 file
$stream = fopen('php://output', 'w');
- export_gedcom($WT_TREE, $stream, $exportOptions);
+ FunctionsExport::exportGedcom($WT_TREE, $stream, $exportOptions);
fclose($stream);
}