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/search/main.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/include/search') diff --git a/core/include/search/main.php b/core/include/search/main.php index 8a02790..c15be17 100644 --- a/core/include/search/main.php +++ b/core/include/search/main.php @@ -42,7 +42,7 @@ if(isset($postIDs) AND !empty($postIDs)) { $Post = Post\Factory::build($postID); $User = User\Factory::build($Post->get('user')); - $posts[] = generatePostItemTemplate($Post, $User); + $templates[] = generatePostItemTemplate($Post, $User); } catch(Post\Exception $Exception){} catch(User\Exception $Exception){} @@ -52,7 +52,7 @@ if(isset($postIDs) AND !empty($postIDs)) { $ResultTemplate->set('FORM', $form_data); $ResultTemplate->set('SEARCH', $search_data); $ResultTemplate->set('RESULT', [ - 'LIST' => $posts ?? [] + 'LIST' => $templates ?? [] ]); $MainTemplate = Template\Factory::build('main'); -- cgit v1.2.3