diff options
author | Thomas Lange <code@nerdmind.de> | 2021-06-21 19:18:35 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2021-06-21 19:18:35 +0200 |
commit | 3eaf909b1fa8b07c6d8b23aa2c2ed3ec4e1932b7 (patch) | |
tree | 9d3ba9fcb9162963e26edbb7bda0709aaf2c8a41 /core/include/feed | |
parent | ec424df850d6e5acc85d49ebd67703cf11f5a8d4 (diff) | |
download | blog-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.php | 4 |
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)); |