diff options
| author | Syndamia <kamen@syndamia.com> | 2025-02-01 10:02:14 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2025-02-01 10:28:22 +0200 |
| commit | faabc462d3080cac67687f450135a078731fb3d1 (patch) | |
| tree | b0d050b510386c3abcc48852bda16480b7c27e8e /views/list/update/index.php | |
| parent | 5a0d4f4a00c9162fbf773ca6b73d34354c6650fe (diff) | |
| download | nowayforward_human-faabc462d3080cac67687f450135a078731fb3d1.tar nowayforward_human-faabc462d3080cac67687f450135a078731fb3d1.tar.gz nowayforward_human-faabc462d3080cac67687f450135a078731fb3d1.zip | |
feat: Rework models methods to be more object-oriented where applicable
Diffstat (limited to 'views/list/update/index.php')
| -rw-r--r-- | views/list/update/index.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/views/list/update/index.php b/views/list/update/index.php index 6fa91e1..b3737f0 100644 --- a/views/list/update/index.php +++ b/views/list/update/index.php @@ -4,12 +4,10 @@ <?php $user = null; $webpage = null; - $lists = null; try { $user = Database\Cookie::fromDB($TOKEN); $webpage = Database\Webpage::fromDBwid($_GET['wid']); - $lists = Database\ArchiveList::allListsByUser($user->UID); } catch (Exception $e) {} ?> @@ -22,7 +20,7 @@ <form action="/list" method="GET"> <input type="hidden" name="method" value="PATCH"> <select name="lid"> - <?php foreach ($lists as $list): ?> + <?php foreach ($user->archiveLists() as $list): ?> <option value="<?= $list->LID ?>"><?= $list->Name ?></option> <?php endforeach; ?> </select> |
