summaryrefslogtreecommitdiff
path: root/model/Post.php
diff options
context:
space:
mode:
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
+}