summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/index.php b/index.php
index 0c8409c..9545e43 100755
--- a/index.php
+++ b/index.php
@@ -23,7 +23,7 @@
<td>
<b><a href="viewthread.php?id=<?= $latest_thread->id ?>"><?= $latest_thread->subject ?></a></b>
<br>
- <small>by <b><a href="viewuser.php?id=<?= $latest_thread->author->id ?>"><?= $latest_thread->author->name ?></a></b>, <?= $latest_thread->date_created ?></small>
+ <small>by <b><a href="viewuser.php?id=<?= $latest_thread->author_id ?>"><?= $latest_thread->get_author()->name ?></a></b>, <?= $latest_thread->date_created ?></small>
</td>
<?php else: ?>
<td>No threads yet!</td>
@@ -44,10 +44,10 @@
<b><a href="viewthread.php?id=<?= $thread->id ?>"><?= $thread->subject ?></a></b>
<small>on <?= date('M d, Y', strtotime($thread->date_created)); ?></small>
</td>
- <td><a href="viewcategory.php?id=<?= $thread->category->id ?>"><?= $thread->category->name ?></a></td>
+ <td><a href="viewcategory.php?id=<?= $thread->category_id ?>"><?= $thread->get_parent_category()->name ?></a></td>
<?php $latest_post = $thread->get_latest_post(); if ($latest_post->has_value()): ?>
<td>
- <small>by <b><a href="viewuser.php?id=<?= $latest_post->author->id ?>"><?= $latest_post->author->name ?></a></b>
+ <small>by <b><a href="viewuser.php?id=<?= $latest_post->author_id ?>"><?= $latest_post->get_author()->name ?></a></b>
on <?= $latest_post->date_created ?></small>
</td>
<?php else: ?>