From 86926ff735cdb7e635a19b01cccd0a94eb2b6d30 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Mon, 21 Jun 2021 19:36:22 +0200 Subject: Rename some template variables --- core/include/home.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/include/home.php') diff --git a/core/include/home.php b/core/include/home.php index 507db7a..0edd1f1 100644 --- a/core/include/home.php +++ b/core/include/home.php @@ -17,7 +17,7 @@ foreach($postIDs as $postID) { $ItemTemplate = generatePostItemTemplate($Post, $User); - $posts[] = $ItemTemplate; + $templates[] = $ItemTemplate; } catch(Post\Exception $Exception){} catch(User\Exception $Exception){} @@ -31,7 +31,7 @@ $HomeTemplate->set('PAGINATION', [ 'HTML' => generatePostNaviTemplate(1) ]); $HomeTemplate->set('LIST', [ - 'POSTS' => $posts ?? [] + 'POSTS' => $templates ?? [] ]); $MainTemplate = Template\Factory::build('main'); -- cgit v1.2.3