From 223a31224b9c140c9369358b6978c55ef289fde1 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Wed, 12 Feb 2025 11:22:43 +0200 Subject: hotfix: Replace environment variables with php global constants --- views/list/export/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'views/list') diff --git a/views/list/export/index.php b/views/list/export/index.php index fc8630b..e38be24 100644 --- a/views/list/export/index.php +++ b/views/list/export/index.php @@ -11,10 +11,11 @@ catch (Exception $e) {} function createWithDOMPDF() { + global $ARCHIVES_DIR; $url = $_GET['url']; $title = $_GET['title']; $wid = $_GET['wid']; - $archive_dir = getenv('ARCHIVES_DIR') . '/' . $wid; + $archive_dir = $ARCHIVES_DIR . '/' . $wid; $html = file_get_contents($archive_dir . '/index.php'); $dompdf = new Dompdf(); -- cgit v1.2.3