aboutsummaryrefslogtreecommitdiffstats
path: root/admin/page/search.php
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-06-21 19:36:22 +0200
committerThomas Lange <code@nerdmind.de>2021-06-21 19:36:22 +0200
commit86926ff735cdb7e635a19b01cccd0a94eb2b6d30 (patch)
treec78610e80d2e3954ce504a8d872c08de1f3abe91 /admin/page/search.php
parent3eaf909b1fa8b07c6d8b23aa2c2ed3ec4e1932b7 (diff)
downloadblog-86926ff735cdb7e635a19b01cccd0a94eb2b6d30.tar.gz
blog-86926ff735cdb7e635a19b01cccd0a94eb2b6d30.tar.xz
blog-86926ff735cdb7e635a19b01cccd0a94eb2b6d30.zip
Rename some template variables
Diffstat (limited to 'admin/page/search.php')
-rw-r--r--admin/page/search.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/page/search.php b/admin/page/search.php
index ba7f49a..7d879f4 100644
--- a/admin/page/search.php
+++ b/admin/page/search.php
@@ -20,7 +20,7 @@ if($search = HTTP::GET('q')) {
$Page = Page\Factory::build($pageID);
$User = User\Factory::build($Page->get('user'));
- $pages[] = generatePageItemTemplate($Page, $User);
+ $templates[] = generatePageItemTemplate($Page, $User);
}
catch(Page\Exception $Exception){}
catch(User\Exception $Exception){}
@@ -33,7 +33,7 @@ if($search = HTTP::GET('q')) {
#===============================================================================
$SearchTemplate = Template\Factory::build('page/search');
$SearchTemplate->set('QUERY', $search);
-$SearchTemplate->set('PAGES', $pages ?? []);
+$SearchTemplate->set('PAGES', $templates ?? []);
$MainTemplate = Template\Factory::build('main');
$MainTemplate->set('NAME', $Language->text('title_page_search'));