diff options
| author | Syndamia <kamen@syndamia.com> | 2025-02-12 11:22:43 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2025-02-12 11:22:43 +0200 |
| commit | 223a31224b9c140c9369358b6978c55ef289fde1 (patch) | |
| tree | bdf9ad64e5c4d475cb7732d1c4e7b33f7d718e0d /views | |
| parent | 62a6f96f42d3f799e5beded2407ca53295a803f2 (diff) | |
| download | nowayforward_human-223a31224b9c140c9369358b6978c55ef289fde1.tar nowayforward_human-223a31224b9c140c9369358b6978c55ef289fde1.tar.gz nowayforward_human-223a31224b9c140c9369358b6978c55ef289fde1.zip | |
hotfix: Replace environment variables with php global constants
Diffstat (limited to 'views')
| -rw-r--r-- | views/global/router.php | 2 | ||||
| -rw-r--r-- | views/list/export/index.php | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/views/global/router.php b/views/global/router.php index ab3a0be..894af6b 100644 --- a/views/global/router.php +++ b/views/global/router.php @@ -1,5 +1,7 @@ <?php +include __DIR__ . '/../../constants.php'; + $VIEWS_DIR = __DIR__ . '/..'; $CONTROLLERS_DIR = __DIR__ . '/../../controllers'; $MODELS_DIR = __DIR__ . '/../../models'; 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(); |
