From f1d09d8cdc6e4a1ed0fb44544b368c6632bbd379 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Thu, 1 Jul 2021 21:25:43 +0200 Subject: 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! --- core/include/category/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/include/category/main.php') 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 ?? [], -- cgit v1.2.3