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 /admin/post/search.php | |
parent | 3eaf909b1fa8b07c6d8b23aa2c2ed3ec4e1932b7 (diff) | |
download | blog-86926ff735cdb7e635a19b01cccd0a94eb2b6d30.tar.gz blog-86926ff735cdb7e635a19b01cccd0a94eb2b6d30.tar.xz blog-86926ff735cdb7e635a19b01cccd0a94eb2b6d30.zip |
Rename some template variables
Diffstat (limited to 'admin/post/search.php')
-rw-r--r-- | admin/post/search.php | 4 |
1 files changed, 2 insertions, 2 deletions
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')); |