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/feed/main.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/include/feed/main.php') diff --git a/core/include/feed/main.php b/core/include/feed/main.php index 765f296..76bf23e 100644 --- a/core/include/feed/main.php +++ b/core/include/feed/main.php @@ -23,7 +23,7 @@ if(!isset($param) OR $param !== 'page') { 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 = Template\Factory::build('feed/item_post'); $ItemTemplate->set('POST', generateItemTemplateData($Post)); @@ -50,7 +50,7 @@ if(!isset($param) OR $param !== 'post') { foreach($pageIDs as $pageID) { try { $Page = Page\Factory::build($pageID); - $User = User\Factory::build($Page->attr('user')); + $User = User\Factory::build($Page->get('user')); $ItemTemplate = Template\Factory::build('feed/item_page'); $ItemTemplate->set('PAGE', generateItemTemplateData($Page)); -- cgit v1.2.3