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/page/list.php | 2 +- core/include/page/main.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'core/include/page') diff --git a/core/include/page/list.php b/core/include/page/list.php index 42e887f..ec2cd00 100644 --- a/core/include/page/list.php +++ b/core/include/page/list.php @@ -36,7 +36,7 @@ $pageIDs = $Database->query(sprintf($execSQL, Page\Attribute::TABLE))->fetchAll( 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 = generatePageItemTemplate($Page, $User); diff --git a/core/include/page/main.php b/core/include/page/main.php index 32a2ec4..01ef40d 100644 --- a/core/include/page/main.php +++ b/core/include/page/main.php @@ -17,7 +17,7 @@ try { $Page = Page\Factory::build($param); } - $User = User\Factory::build($Page->attr('user')); + $User = User\Factory::build($Page->get('user')); $page_data = generateItemTemplateData($Page); $user_data = generateItemTemplateData($User); -- cgit v1.2.3