aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-06-13 16:45:06 +0200
committerThomas Lange <code@nerdmind.de>2021-06-13 16:45:06 +0200
commit8115f8611ac16133b5cc70bdb99513b2ca0ff921 (patch)
treea848439b80fde3e61739fda93883af97359579e4 /admin
parente5da1f532334a265e1b1c88d2a942e92654370d6 (diff)
downloadblog-8115f8611ac16133b5cc70bdb99513b2ca0ff921.tar.gz
blog-8115f8611ac16133b5cc70bdb99513b2ca0ff921.tar.xz
blog-8115f8611ac16133b5cc70bdb99513b2ca0ff921.zip
Add configuration settings (admin prefixes)
Introduce the following configuration settings to make it possible to use different settings for the number of displayed items and ordering on the administration areas overview pages. ADMIN.PAGE.LIST_SIZE ADMIN.POST.LIST_SIZE ADMIN.USER.LIST_SIZE ADMIN.PAGE.LIST_SORT ADMIN.POST.LIST_SORT ADMIN.USER.LIST_SORT
Diffstat (limited to 'admin')
-rw-r--r--admin/page/index.php4
-rw-r--r--admin/post/index.php4
-rw-r--r--admin/user/index.php4
3 files changed, 6 insertions, 6 deletions
diff --git a/admin/page/index.php b/admin/page/index.php
index 090b31c..584ba48 100644
--- a/admin/page/index.php
+++ b/admin/page/index.php
@@ -13,8 +13,8 @@ require '../../core/application.php';
#===============================================================================
# Pagination
#===============================================================================
-$site_size = Application::get('PAGE.LIST_SIZE');
-$site_sort = Application::get('PAGE.LIST_SORT');
+$site_size = Application::get('ADMIN.PAGE.LIST_SIZE');
+$site_sort = Application::get('ADMIN.PAGE.LIST_SORT');
$lastSite = ceil($Database->query(sprintf('SELECT COUNT(id) FROM %s', Page\Attribute::TABLE))->fetchColumn() / $site_size);
diff --git a/admin/post/index.php b/admin/post/index.php
index 15e2c17..7793c9b 100644
--- a/admin/post/index.php
+++ b/admin/post/index.php
@@ -13,8 +13,8 @@ require '../../core/application.php';
#===============================================================================
# Pagination
#===============================================================================
-$site_size = Application::get('POST.LIST_SIZE');
-$site_sort = Application::get('POST.LIST_SORT');
+$site_size = Application::get('ADMIN.POST.LIST_SIZE');
+$site_sort = Application::get('ADMIN.POST.LIST_SORT');
$lastSite = ceil($Database->query(sprintf('SELECT COUNT(id) FROM %s', Post\Attribute::TABLE))->fetchColumn() / $site_size);
diff --git a/admin/user/index.php b/admin/user/index.php
index 6b3d726..223e83e 100644
--- a/admin/user/index.php
+++ b/admin/user/index.php
@@ -13,8 +13,8 @@ require '../../core/application.php';
#===============================================================================
# Pagination
#===============================================================================
-$site_size = Application::get('POST.LIST_SIZE');
-$site_sort = Application::get('POST.LIST_SORT');
+$site_size = Application::get('ADMIN.POST.LIST_SIZE');
+$site_sort = Application::get('ADMIN.POST.LIST_SORT');
$lastSite = ceil($Database->query(sprintf('SELECT COUNT(id) FROM %s', User\Attribute::TABLE))->fetchColumn() / $site_size);