summaryrefslogtreecommitdiff
path: root/model/Post.php
diff options
context:
space:
mode:
authorcflip <36554078+cflip@users.noreply.github.com>2021-04-07 11:44:11 -0600
committercflip <36554078+cflip@users.noreply.github.com>2021-04-07 11:44:11 -0600
commitd61a18a93bc1b39d91725497ebb2fe85c4785ead (patch)
tree20403b00b2672c2183966989173d9dec2f4523dc /model/Post.php
parent6dd221f59e4b8fd0c824ee9831b6efdbecb3aee7 (diff)
Update links, rename files
Diffstat (limited to 'model/Post.php')
-rw-r--r--model/Post.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/model/Post.php b/model/Post.php
index bcaff29..d10a505 100644
--- a/model/Post.php
+++ b/model/Post.php
@@ -37,7 +37,7 @@ class Post {
}
function display_content() {
- echo '<div>#' . $this->id . ' Posted by <a href="/forum/user/'. $this->author->name .'">' . $this->author->name . '</a> on ' . date('m/d/Y g:ia', strtotime($this->date)) . '<br></div>';
+ echo '<div>#' . $this->id . ' Posted by <a href="viewuser.php?id='. $this->author->id.'">' . $this->author->name . '</a> on ' . date('m/d/Y g:ia', strtotime($this->date)) . '<br></div>';
$post_content = $this->content;
@@ -79,4 +79,4 @@ function get_all_posts($dbc) {
mysqli_free_result($result);
return $posts;
-} \ No newline at end of file
+}