aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--admin/page/index.php4
-rw-r--r--admin/page/search.php4
-rw-r--r--admin/post/index.php4
-rw-r--r--admin/post/search.php4
-rw-r--r--admin/user/index.php4
-rw-r--r--core/include/feed/main.php8
-rw-r--r--core/include/home.php4
-rw-r--r--core/include/page/list.php4
-rw-r--r--core/include/post/list.php4
-rw-r--r--core/include/search/main.php4
-rw-r--r--core/include/user/list.php4
11 files changed, 24 insertions, 24 deletions
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'));
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'));
diff --git a/admin/user/index.php b/admin/user/index.php
index 7d0cfa8..57e1c3c 100644
--- a/admin/user/index.php
+++ b/admin/user/index.php
@@ -36,7 +36,7 @@ foreach($userIDs as $userID) {
$User = User\Factory::build($userID);
$ItemTemplate = generateUserItemTemplate($User);
- $users[] = $ItemTemplate;
+ $templates[] = $ItemTemplate;
} catch(User\Exception $Exception){}
}
@@ -50,7 +50,7 @@ $PaginationTemplate->set('HREF', Application::getAdminURL('user/?site=%d'));
$ListTemplate = Template\Factory::build('user/index');
$ListTemplate->set('LIST', [
- 'USERS' => $users ?? []
+ 'USERS' => $templates ?? []
]);
$ListTemplate->set('PAGINATION', [
diff --git a/core/include/feed/main.php b/core/include/feed/main.php
index 76bf23e..4dc7c81 100644
--- a/core/include/feed/main.php
+++ b/core/include/feed/main.php
@@ -29,7 +29,7 @@ if(!isset($param) OR $param !== 'page') {
$ItemTemplate->set('POST', generateItemTemplateData($Post));
$ItemTemplate->set('USER', generateItemTemplateData($User));
- $posts[] = $ItemTemplate;
+ $post_templates[] = $ItemTemplate;
}
catch(Post\Exception $Exception){}
@@ -56,7 +56,7 @@ if(!isset($param) OR $param !== 'post') {
$ItemTemplate->set('PAGE', generateItemTemplateData($Page));
$ItemTemplate->set('USER', generateItemTemplateData($User));
- $pages[] = $ItemTemplate;
+ $page_templates[] = $ItemTemplate;
}
catch(Page\Exception $Exception){}
@@ -71,8 +71,8 @@ $FeedTemplate = Template\Factory::build('feed/main');
$FeedTemplate->set('FEED', [
'TYPE' => $param ?? NULL,
'LIST' => [
- 'POSTS' => $posts ?? [],
- 'PAGES' => $pages ?? [],
+ 'POSTS' => $post_templates ?? [],
+ 'PAGES' => $page_templates ?? [],
]
]);
diff --git a/core/include/home.php b/core/include/home.php
index 507db7a..0edd1f1 100644
--- a/core/include/home.php
+++ b/core/include/home.php
@@ -17,7 +17,7 @@ foreach($postIDs as $postID) {
$ItemTemplate = generatePostItemTemplate($Post, $User);
- $posts[] = $ItemTemplate;
+ $templates[] = $ItemTemplate;
}
catch(Post\Exception $Exception){}
catch(User\Exception $Exception){}
@@ -31,7 +31,7 @@ $HomeTemplate->set('PAGINATION', [
'HTML' => generatePostNaviTemplate(1)
]);
$HomeTemplate->set('LIST', [
- 'POSTS' => $posts ?? []
+ 'POSTS' => $templates ?? []
]);
$MainTemplate = Template\Factory::build('main');
diff --git a/core/include/page/list.php b/core/include/page/list.php
index ec2cd00..55f38cc 100644
--- a/core/include/page/list.php
+++ b/core/include/page/list.php
@@ -40,7 +40,7 @@ foreach($pageIDs as $pageID) {
$ItemTemplate = generatePageItemTemplate($Page, $User);
- $pages[] = $ItemTemplate;
+ $templates[] = $ItemTemplate;
}
catch(Page\Exception $Exception){}
catch(User\Exception $Exception){}
@@ -56,7 +56,7 @@ $ListTemplate->set('PAGINATION', [
'HTML' => generatePageNaviTemplate($currentSite)
]);
$ListTemplate->set('LIST', [
- 'PAGES' => $pages ?? []
+ 'PAGES' => $templates ?? []
]);
$MainTemplate = Template\Factory::build('main');
diff --git a/core/include/post/list.php b/core/include/post/list.php
index 9b2eec9..b542a2f 100644
--- a/core/include/post/list.php
+++ b/core/include/post/list.php
@@ -40,7 +40,7 @@ foreach($postIDs as $postID) {
$ItemTemplate = generatePostItemTemplate($Post, $User);
- $posts[] = $ItemTemplate;
+ $templates[] = $ItemTemplate;
}
catch(Post\Exception $Exception){}
catch(User\Exception $Exception){}
@@ -56,7 +56,7 @@ $ListTemplate->set('PAGINATION', [
'HTML' => generatePostNaviTemplate($currentSite)
]);
$ListTemplate->set('LIST', [
- 'POSTS' => $posts ?? []
+ 'POSTS' => $templates ?? []
]);
$MainTemplate = Template\Factory::build('main');
diff --git a/core/include/search/main.php b/core/include/search/main.php
index 8a02790..c15be17 100644
--- a/core/include/search/main.php
+++ b/core/include/search/main.php
@@ -42,7 +42,7 @@ if(isset($postIDs) AND !empty($postIDs)) {
$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){}
@@ -52,7 +52,7 @@ if(isset($postIDs) AND !empty($postIDs)) {
$ResultTemplate->set('FORM', $form_data);
$ResultTemplate->set('SEARCH', $search_data);
$ResultTemplate->set('RESULT', [
- 'LIST' => $posts ?? []
+ 'LIST' => $templates ?? []
]);
$MainTemplate = Template\Factory::build('main');
diff --git a/core/include/user/list.php b/core/include/user/list.php
index 4cba8f0..c977077 100644
--- a/core/include/user/list.php
+++ b/core/include/user/list.php
@@ -38,7 +38,7 @@ foreach($userIDs as $userID) {
$User = User\Factory::build($userID);
$ItemTemplate = generateUserItemTemplate($User);
- $users[] = $ItemTemplate;
+ $templates[] = $ItemTemplate;
} catch(User\Exception $Exception){}
}
@@ -52,7 +52,7 @@ $ListTemplate->set('PAGINATION', [
'HTML' => generateUserNaviTemplate($currentSite)
]);
$ListTemplate->set('LIST', [
- 'USERS' => $users ?? []
+ 'USERS' => $templates ?? []
]);
$MainTemplate = Template\Factory::build('main');