aboutsummaryrefslogtreecommitdiffstats
path: root/core/include/category/main.php
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-07-01 21:25:43 +0200
committerThomas Lange <code@nerdmind.de>2021-07-01 21:25:43 +0200
commitf1d09d8cdc6e4a1ed0fb44544b368c6632bbd379 (patch)
treebe2c9aa922f61b825e8ba9f9333b7f27e5407161 /core/include/category/main.php
parente6cef37e0c782fe770db20888d99c17d10e2c479 (diff)
downloadblog-f1d09d8cdc6e4a1ed0fb44544b368c6632bbd379.tar.gz
blog-f1d09d8cdc6e4a1ed0fb44544b368c6632bbd379.tar.xz
blog-f1d09d8cdc6e4a1ed0fb44544b368c6632bbd379.zip
Add function generateCategoryPostNaviTemplate
Add and use the function generateCategoryPostNaviTemplate to build the pagination template for posts in a category. This fixes a mistake. TODO: Get rid of that confusing function mess!
Diffstat (limited to 'core/include/category/main.php')
-rw-r--r--core/include/category/main.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/include/category/main.php b/core/include/category/main.php
index 57f8625..1f9adf7 100644
--- a/core/include/category/main.php
+++ b/core/include/category/main.php
@@ -111,7 +111,7 @@ $CategoryTemplate->set('COUNT', [
$CategoryTemplate->set('PAGINATION', [
'THIS' => $currentSite,
'LAST' => $lastSite,
- 'HTML' => generatePostNaviTemplate($currentSite)
+ 'HTML' => generateCategoryPostNaviTemplate($currentSite, $Category)
]);
$CategoryTemplate->set('LIST', [
'POSTS' => $post_templates ?? [],