aboutsummaryrefslogtreecommitdiff
path: root/views/list
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2025-02-08 17:51:00 +0200
committerSyndamia <kamen@syndamia.com>2025-02-08 17:51:00 +0200
commit8cc28706954450f7e94ac587b24f41be8a8b118e (patch)
treef58c9086628be2af531ca6d8c184edaeb55085cc /views/list
parent0769feb5cda8c21ea12a30f94f03b5a74f61e804 (diff)
downloadnowayforward_human-8cc28706954450f7e94ac587b24f41be8a8b118e.tar
nowayforward_human-8cc28706954450f7e94ac587b24f41be8a8b118e.tar.gz
nowayforward_human-8cc28706954450f7e94ac587b24f41be8a8b118e.zip
fix(views/list): Use environment dir for archives instead of hard-coded path
Diffstat (limited to 'views/list')
-rw-r--r--views/list/export/index.php2
1 files changed, 1 insertions, 1 deletions
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();