diff options
author | cflip <36554078+cflip@users.noreply.github.com> | 2021-04-14 18:18:29 -0600 |
---|---|---|
committer | cflip <36554078+cflip@users.noreply.github.com> | 2021-04-14 18:18:29 -0600 |
commit | 79ea99ee8cf0c387606087fc9cc9c379512ccd9c (patch) | |
tree | 1c61cfdc0fa52af589a9908bab5e0c7e9df31cdd /model/Post.php | |
parent | 9a3e01d5568211c2196074ca8b9d0d0b6239cafa (diff) |
Add post editing page (#12)
Diffstat (limited to 'model/Post.php')
-rw-r--r-- | model/Post.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/model/Post.php b/model/Post.php index d7aba72..34d6a79 100644 --- a/model/Post.php +++ b/model/Post.php @@ -69,8 +69,7 @@ class Post { } if (isset($_SESSION['signed_in']) && $_SESSION['user_id'] == $this->author->id) { echo '<span style="float:right;">'; - echo '[<a href="includes/manage_post.php?action=edit&id=' . $this->id . '">Edit</a>] '; - echo '[<a href="includes/manage_post.php?action=delete&id=' . $this->id . '">Delete</a>]'; + echo '[<a href="manage_post.php?id=' . $this->id . '">Edit/Delete</a>] '; echo'</span>'; } echo '</div>'; |