summaryrefslogtreecommitdiff
path: root/404.php
diff options
context:
space:
mode:
Diffstat (limited to '404.php')
-rw-r--r--404.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/404.php b/404.php
index 7741541..7d49c8b 100644
--- a/404.php
+++ b/404.php
@@ -31,7 +31,7 @@ $reason = str_safe($_GET["error_reason"] ?? "Not found", 200);
<section style="position: absolute; right: 6px; bottom: 6px;">
<img src="/static/img/404/<?php
- $files = scandir(INSTANCE_STATIC_FOLDER . "/img/404");
+ $files = scandir("{$_SERVER['DOCUMENT_ROOT']}/static/img/404");
array_splice($files, 0, 2);
echo $files[random_int(0, count($files) - 1)];
?>" alt=""></img>