aboutsummaryrefslogtreecommitdiffstats
path: root/admin/post
diff options
context:
space:
mode:
Diffstat (limited to 'admin/post')
-rw-r--r--admin/post/index.php4
-rw-r--r--admin/post/search.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/admin/post/index.php b/admin/post/index.php
index bb38676..79fbf92 100644
--- a/admin/post/index.php
+++ b/admin/post/index.php
@@ -38,7 +38,7 @@ foreach($postIDs as $postID) {
$ItemTemplate = generatePostItemTemplate($Post, $User);
- $posts[] = $ItemTemplate;
+ $templates[] = $ItemTemplate;
}
catch(Post\Exception $Exception){}
catch(User\Exception $Exception){}
@@ -54,7 +54,7 @@ $PaginationTemplate->set('HREF', Application::getAdminURL('post/?site=%d'));
$ListTemplate = Template\Factory::build('post/index');
$ListTemplate->set('LIST', [
- 'POSTS' => $posts ?? []
+ 'POSTS' => $templates ?? []
]);
$ListTemplate->set('PAGINATION', [
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'));