aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/application.php1
-rw-r--r--core/include/category/list.php2
2 files changed, 1 insertions, 2 deletions
diff --git a/core/application.php b/core/application.php
index 0e1324a..280a8e7 100644
--- a/core/application.php
+++ b/core/application.php
@@ -89,6 +89,7 @@ foreach([
'PAGE.SINGLE_REDIRECT' => FALSE,
'POST.SINGLE_REDIRECT' => FALSE,
'USER.SINGLE_REDIRECT' => FALSE,
+ 'CATEGORY.LIST_SORT' => 'name ASC',
'PAGE.LIST_SORT' => 'time_insert DESC',
'POST.LIST_SORT' => 'time_insert DESC',
'USER.LIST_SORT' => 'time_insert DESC',
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);