From 2458ca6964401c0bd2cd809d303dfbcaea3ead90 Mon Sep 17 00:00:00 2001
From: cflip <36554078+cflip@users.noreply.github.com>
Date: Wed, 11 Aug 2021 15:14:18 -0600
Subject: Add getters for nested objects
---
index.php | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
(limited to 'index.php')
diff --git a/index.php b/index.php
index 0c8409c..9545e43 100755
--- a/index.php
+++ b/index.php
@@ -23,7 +23,7 @@
= $latest_thread->subject ?>
- by = $latest_thread->author->name ?>, = $latest_thread->date_created ?>
+ by = $latest_thread->get_author()->name ?>, = $latest_thread->date_created ?>
|
No threads yet! |
@@ -44,10 +44,10 @@
= $thread->subject ?>
on = date('M d, Y', strtotime($thread->date_created)); ?>
- = $thread->category->name ?> |
+ = $thread->get_parent_category()->name ?> |
get_latest_post(); if ($latest_post->has_value()): ?>
- by = $latest_post->author->name ?>
+ by = $latest_post->get_author()->name ?>
on = $latest_post->date_created ?>
|
--
cgit v1.2.3