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/page/index.php | 4 ++-- admin/page/search.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'admin/page') diff --git a/admin/page/index.php b/admin/page/index.php index 2fde136..79be1b2 100644 --- a/admin/page/index.php +++ b/admin/page/index.php @@ -38,7 +38,7 @@ foreach($pageIDs as $pageID) { $ItemTemplate = generatePageItemTemplate($Page, $User); - $pages[] = $ItemTemplate; + $templates[] = $ItemTemplate; } catch(Page\Exception $Exception){} catch(User\Exception $Exception){} @@ -54,7 +54,7 @@ $PaginationTemplate->set('HREF', Application::getAdminURL('page/?site=%d')); $ListTemplate = Template\Factory::build('page/index'); $ListTemplate->set('LIST', [ - 'PAGES' => $pages ?? [] + 'PAGES' => $templates ?? [] ]); $ListTemplate->set('PAGINATION', [ 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')); -- cgit v1.2.3