summaryrefslogtreecommitdiff
path: root/model/Post.php
diff options
context:
space:
mode:
authorcflip <36554078+cflip@users.noreply.github.com>2021-04-14 18:18:29 -0600
committercflip <36554078+cflip@users.noreply.github.com>2021-04-14 18:18:29 -0600
commit79ea99ee8cf0c387606087fc9cc9c379512ccd9c (patch)
tree1c61cfdc0fa52af589a9908bab5e0c7e9df31cdd /model/Post.php
parent9a3e01d5568211c2196074ca8b9d0d0b6239cafa (diff)
Add post editing page (#12)
Diffstat (limited to 'model/Post.php')
-rw-r--r--model/Post.php3
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>';