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 --- admin/post/search.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'admin/post/search.php') diff --git a/admin/post/search.php b/admin/post/search.php index ec2391c..616359e 100644 --- a/admin/post/search.php +++ b/admin/post/search.php @@ -20,7 +20,7 @@ if($search = HTTP::GET('q')) { $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){} @@ -33,7 +33,7 @@ if($search = HTTP::GET('q')) { #=============================================================================== $SearchTemplate = Template\Factory::build('post/search'); $SearchTemplate->set('QUERY', $search); -$SearchTemplate->set('POSTS', $posts ?? []); +$SearchTemplate->set('POSTS', $templates ?? []); $MainTemplate = Template\Factory::build('main'); $MainTemplate->set('NAME', $Language->text('title_post_search')); -- cgit v1.2.3