aboutsummaryrefslogtreecommitdiffstats
path: root/core/include
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-07-01 23:14:40 +0200
committerThomas Lange <code@nerdmind.de>2021-07-01 23:14:40 +0200
commit3833c8c19baf519385ebf2fea5c9018a66edb325 (patch)
tree6aaf41c79ac12bf8ad2251ee4176563d46e5d508 /core/include
parent78f8fb62f4d5b518eac51ffa8c03adc320d5ab1e (diff)
downloadblog-3833c8c19baf519385ebf2fea5c9018a66edb325.tar.gz
blog-3833c8c19baf519385ebf2fea5c9018a66edb325.tar.xz
blog-3833c8c19baf519385ebf2fea5c9018a66edb325.zip
Add option CATEGORY.LIST_SORT to application.php
The option CATEGORY.LIST_SORT is currently only used for sorting the children categories of a category, not for sorting the categories on the category overview page. This is because the sorting of the categories in the category overview is handelnd internally with a virtual table column "_depth" which sorts the categories by name *and* its sub categories (like a tree). Thus, there is currently no user option to sort the category overview.
Diffstat (limited to 'core/include')
-rw-r--r--core/include/category/list.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/core/include/category/list.php b/core/include/category/list.php
index 9bd2a68..4702a79 100644
--- a/core/include/category/list.php
+++ b/core/include/category/list.php
@@ -14,9 +14,7 @@ $PostRepository = Application::getRepository('Post');
# Pagination
#===============================================================================
$site_size = Application::get('CATEGORY.LIST_SIZE');
-$site_sort = Application::get('CATEGORY.LIST_SORT');
-#$count = $CategoryRepository->getCount(['parent' => NULL]);
$count = $CategoryRepository->getCount();
$lastSite = ceil($count / $site_size);