diff options
| author | David T. Sadler <davidtsadler@googlemail.com> | 2021-10-26 21:07:43 +0100 |
|---|---|---|
| committer | David T. Sadler <davidtsadler@googlemail.com> | 2021-10-26 21:07:43 +0100 |
| commit | ae205d810b62dce5e3e11aef07358c11ded48c77 (patch) | |
| tree | 0196ae98aefb93b719d6b21cc065e22c1ecf992b /public/edit | |
| parent | d4122f116c937e0ec509d8cefe540146ec27a0cd (diff) | |
Implement old
Diffstat (limited to 'public/edit')
| -rw-r--r-- | public/edit/index.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/public/edit/index.php b/public/edit/index.php index fba5a90..b1efeec 100644 --- a/public/edit/index.php +++ b/public/edit/index.php @@ -4,6 +4,7 @@ declare(strict_types=1); use DTS\BookmarkRepository; use DTS\Errors; +use DTS\Old; use DTS\Session; use DTS\Template; @@ -19,6 +20,8 @@ if (filter_input(INPUT_SERVER, 'REQUEST_METHOD') !== 'GET') { respondAndExit(405, 'Method Not Allowed'); } +$old = $session->get('old', new Old()); + $errors = $session->get('errors', new Errors()); $id = filter_input(INPUT_GET, 'id'); @@ -35,7 +38,8 @@ if ($bookmark === null) { $html = $template->render('edit', compact( 'bookmark', - 'errors' + 'errors', + 'old' )); respondAndExit(200, 'OK', $html); |
