diff options
author | Thomas Lange <code@nerdmind.de> | 2021-06-21 19:36:22 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2021-06-21 19:36:22 +0200 |
commit | 86926ff735cdb7e635a19b01cccd0a94eb2b6d30 (patch) | |
tree | c78610e80d2e3954ce504a8d872c08de1f3abe91 /core/include/feed/main.php | |
parent | 3eaf909b1fa8b07c6d8b23aa2c2ed3ec4e1932b7 (diff) | |
download | blog-86926ff735cdb7e635a19b01cccd0a94eb2b6d30.tar.gz blog-86926ff735cdb7e635a19b01cccd0a94eb2b6d30.tar.xz blog-86926ff735cdb7e635a19b01cccd0a94eb2b6d30.zip |
Rename some template variables
Diffstat (limited to 'core/include/feed/main.php')
-rw-r--r-- | core/include/feed/main.php | 8 |
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 ?? [], ] ]); |