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" --- admin/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'admin/index.php') diff --git a/admin/index.php b/admin/index.php index 788cee4..b3508b5 100644 --- a/admin/index.php +++ b/admin/index.php @@ -25,7 +25,7 @@ $UserCountStatement = $Database->query(sprintf($execute, User\Attribute::TABLE)) try { $LastPage = Page\Factory::build($LastPageStatement->fetchColumn()); - $LastPageUser = User\Factory::build($LastPage->attr('user')); + $LastPageUser = User\Factory::build($LastPage->get('user')); $PageItemTemplate = generatePageItemTemplate($LastPage, $LastPageUser); } @@ -35,7 +35,7 @@ catch(User\Exception $Exception){} try { $LastPost = Post\Factory::build($LastPostStatement->fetchColumn()); - $LastPostUser = User\Factory::build($LastPost->attr('user')); + $LastPostUser = User\Factory::build($LastPost->get('user')); $PostItemTemplate = generatePostItemTemplate($LastPost, $LastPostUser); } -- cgit v1.2.3