From 3eaf909b1fa8b07c6d8b23aa2c2ed3ec4e1932b7 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Mon, 21 Jun 2021 19:18:35 +0200 Subject: Rename "attr" method of Item class to "get" --- core/include/home.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/include/home.php') diff --git a/core/include/home.php b/core/include/home.php index dfa2a36..507db7a 100644 --- a/core/include/home.php +++ b/core/include/home.php @@ -13,7 +13,7 @@ $postIDs = $Statement->fetchAll($Database::FETCH_COLUMN); foreach($postIDs as $postID) { try { $Post = Post\Factory::build($postID); - $User = User\Factory::build($Post->attr('user')); + $User = User\Factory::build($Post->get('user')); $ItemTemplate = generatePostItemTemplate($Post, $User); -- cgit v1.2.3