aboutsummaryrefslogtreecommitdiff
path: root/controllers/archive.php
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2025-01-26 22:17:55 +0200
committerSyndamia <kamen@syndamia.com>2025-01-26 22:24:47 +0200
commit39f5b1fce005ff0a2c3cb552c4ec5f478ab0b831 (patch)
treefd0bc682d9730ab722a02e5d9c10dc945fa3cd3f /controllers/archive.php
parent6082680e8655efcec0b255047b5b27064bf9fc3f (diff)
downloadnowayforward_human-39f5b1fce005ff0a2c3cb552c4ec5f478ab0b831.tar
nowayforward_human-39f5b1fce005ff0a2c3cb552c4ec5f478ab0b831.tar.gz
nowayforward_human-39f5b1fce005ff0a2c3cb552c4ec5f478ab0b831.zip
feat: Add fromWid, addItem
Diffstat (limited to 'controllers/archive.php')
-rw-r--r--controllers/archive.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/controllers/archive.php b/controllers/archive.php
index 0941d12..6b6098c 100644
--- a/controllers/archive.php
+++ b/controllers/archive.php
@@ -370,7 +370,7 @@ class DownloadPage {
debugPrintToConsole("This is necessary for some reason, without it the content is not actually shown!");
$currentPageId = basename(__DIR__);
- $currentPage = Database\Webpage::getPageById($currentPageId);
+ $currentPage = Database\Webpage::fromDBwid($currentPageId);
$requesterUsername = Database\User::fromDBuid($currentPage->RequesterUID);
$previousPageId = Database\Webpage::getPreviousPageId($currentPage->URL, $currentPage->Date);