Website Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit8cc28706954450f7e94ac587b24f41be8a8b118e (patch)
Author
 Syndamia <kamen@syndamia.com>
2025-02-08 17:51:00 +0200
Committer
 Syndamia <kamen@syndamia.com>
2025-02-08 17:51:00 +0200
Filesf58c9086628be2af531ca6d8c184edaeb55085cc
nowayforward_human-8cc28706954450f7e94ac587b24f41be8a8b118e.tar
nowayforward_human-8cc28706954450f7e94ac587b24f41be8a8b118e.tar.gz
nowayforward_human-8cc28706954450f7e94ac587b24f41be8a8b118e.zip
Parent0769feb5cda8c21ea12a30f94f03b5a74f61e804 (diff)
fix(views/list): Use environment dir for archives instead of hard-coded path
1 files changed, 1 insertions, 1 deletions
-rw-r--r--views/list/export/index.php2
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();