Website Summary Files Commits Branches @commit @diff @stats
path: root / views / list / add / index.php
diff options
context:
space:
mode:
1 files changed, 2 insertions, 3 deletions
-rw-r--r--views/list/add/index.php5
diff --git a/views/list/add/index.php b/views/list/add/index.php
index 98c768d..272efda 100644
--- a/views/list/add/index.php
+++ b/views/list/add/index.php
@@ -1,11 +1,10 @@
<?php
- require_login();
-
+ $user = require_login();
$webpage = null;
$list = null;
try {
- $list = Database\Cookie::fromDB($TOKEN)->archiveLists();
+ $list = $user->archiveLists();
$webpage = Database\Webpage::fromDBwid($_GET['wid']);
}
catch (Exception $e) {}