From 8cc28706954450f7e94ac587b24f41be8a8b118e Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 8 Feb 2025 17:51:00 +0200 Subject: fix(views/list): Use environment dir for archives instead of hard-coded path --- views/list/export/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'views') diff --git a/views/list/export/index.php b/views/list/export/index.php index 6e58405..fc8630b 100644 --- a/views/list/export/index.php +++ b/views/list/export/index.php @@ -14,7 +14,7 @@ $url = $_GET['url']; $title = $_GET['title']; $wid = $_GET['wid']; - $archive_dir = __DIR__ . '/../../../.archives/' . $wid; + $archive_dir = getenv('ARCHIVES_DIR') . '/' . $wid; $html = file_get_contents($archive_dir . '/index.php'); $dompdf = new Dompdf(); -- cgit v1.2.3