aboutsummaryrefslogtreecommitdiffstats
path: root/core/include/feed
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-06-21 19:18:35 +0200
committerThomas Lange <code@nerdmind.de>2021-06-21 19:18:35 +0200
commit3eaf909b1fa8b07c6d8b23aa2c2ed3ec4e1932b7 (patch)
tree9d3ba9fcb9162963e26edbb7bda0709aaf2c8a41 /core/include/feed
parentec424df850d6e5acc85d49ebd67703cf11f5a8d4 (diff)
downloadblog-3eaf909b1fa8b07c6d8b23aa2c2ed3ec4e1932b7.tar.gz
blog-3eaf909b1fa8b07c6d8b23aa2c2ed3ec4e1932b7.tar.xz
blog-3eaf909b1fa8b07c6d8b23aa2c2ed3ec4e1932b7.zip
Rename "attr" method of Item class to "get"
Diffstat (limited to 'core/include/feed')
-rw-r--r--core/include/feed/main.php4
1 files changed, 2 insertions, 2 deletions
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));