aboutsummaryrefslogtreecommitdiffstats
path: root/core/include/feed
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-06-21 19:36:22 +0200
committerThomas Lange <code@nerdmind.de>2021-06-21 19:36:22 +0200
commit86926ff735cdb7e635a19b01cccd0a94eb2b6d30 (patch)
treec78610e80d2e3954ce504a8d872c08de1f3abe91 /core/include/feed
parent3eaf909b1fa8b07c6d8b23aa2c2ed3ec4e1932b7 (diff)
downloadblog-86926ff735cdb7e635a19b01cccd0a94eb2b6d30.tar.gz
blog-86926ff735cdb7e635a19b01cccd0a94eb2b6d30.tar.xz
blog-86926ff735cdb7e635a19b01cccd0a94eb2b6d30.zip
Rename some template variables
Diffstat (limited to 'core/include/feed')
-rw-r--r--core/include/feed/main.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/include/feed/main.php b/core/include/feed/main.php
index 76bf23e..4dc7c81 100644
--- a/core/include/feed/main.php
+++ b/core/include/feed/main.php
@@ -29,7 +29,7 @@ if(!isset($param) OR $param !== 'page') {
$ItemTemplate->set('POST', generateItemTemplateData($Post));
$ItemTemplate->set('USER', generateItemTemplateData($User));
- $posts[] = $ItemTemplate;
+ $post_templates[] = $ItemTemplate;
}
catch(Post\Exception $Exception){}
@@ -56,7 +56,7 @@ if(!isset($param) OR $param !== 'post') {
$ItemTemplate->set('PAGE', generateItemTemplateData($Page));
$ItemTemplate->set('USER', generateItemTemplateData($User));
- $pages[] = $ItemTemplate;
+ $page_templates[] = $ItemTemplate;
}
catch(Page\Exception $Exception){}
@@ -71,8 +71,8 @@ $FeedTemplate = Template\Factory::build('feed/main');
$FeedTemplate->set('FEED', [
'TYPE' => $param ?? NULL,
'LIST' => [
- 'POSTS' => $posts ?? [],
- 'PAGES' => $pages ?? [],
+ 'POSTS' => $post_templates ?? [],
+ 'PAGES' => $page_templates ?? [],
]
]);