aboutsummaryrefslogtreecommitdiffstats
path: root/core/include/page
diff options
context:
space:
mode:
Diffstat (limited to 'core/include/page')
-rw-r--r--core/include/page/list.php2
-rw-r--r--core/include/page/main.php2
2 files changed, 2 insertions, 2 deletions
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);