diff options
Diffstat (limited to 'core/include/post')
-rw-r--r-- | core/include/post/list.php | 2 | ||||
-rw-r--r-- | core/include/post/main.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/include/post/list.php b/core/include/post/list.php index 3fd9a44..9b2eec9 100644 --- a/core/include/post/list.php +++ b/core/include/post/list.php @@ -36,7 +36,7 @@ $postIDs = $Database->query(sprintf($execSQL, Post\Attribute::TABLE))->fetchAll( 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); diff --git a/core/include/post/main.php b/core/include/post/main.php index 537873c..57cc402 100644 --- a/core/include/post/main.php +++ b/core/include/post/main.php @@ -17,7 +17,7 @@ try { $Post = Post\Factory::build($param); } - $User = User\Factory::build($Post->attr('user')); + $User = User\Factory::build($Post->get('user')); $post_data = generateItemTemplateData($Post); $user_data = generateItemTemplateData($User); |