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/page | |
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/page')
-rw-r--r-- | core/include/page/list.php | 2 | ||||
-rw-r--r-- | core/include/page/main.php | 2 |
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); |