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/post/list.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/include/post/list.php') diff --git a/core/include/post/list.php b/core/include/post/list.php index 9b2eec9..b542a2f 100644 --- a/core/include/post/list.php +++ b/core/include/post/list.php @@ -40,7 +40,7 @@ foreach($postIDs as $postID) { $ItemTemplate = generatePostItemTemplate($Post, $User); - $posts[] = $ItemTemplate; + $templates[] = $ItemTemplate; } catch(Post\Exception $Exception){} catch(User\Exception $Exception){} @@ -56,7 +56,7 @@ $ListTemplate->set('PAGINATION', [ 'HTML' => generatePostNaviTemplate($currentSite) ]); $ListTemplate->set('LIST', [ - 'POSTS' => $posts ?? [] + 'POSTS' => $templates ?? [] ]); $MainTemplate = Template\Factory::build('main'); -- cgit v1.2.3