aboutsummaryrefslogtreecommitdiffstats
path: root/admin/user
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-07-02 20:32:17 +0200
committerThomas Lange <code@nerdmind.de>2021-07-02 20:32:17 +0200
commit299bff3d9e301d954731118c6526f422dc866e0d (patch)
treeb374b3c798e57853d2a11bdd090e59661e82adb4 /admin/user
parentf5f94531c9d5b369fdf9c287f63c41476496e5ee (diff)
downloadblog-299bff3d9e301d954731118c6526f422dc866e0d.tar.gz
blog-299bff3d9e301d954731118c6526f422dc866e0d.tar.xz
blog-299bff3d9e301d954731118c6526f422dc866e0d.zip
Use createPaginationTemplate also in admin area
Diffstat (limited to 'admin/user')
-rw-r--r--admin/user/index.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/admin/user/index.php b/admin/user/index.php
index dce21db..d2bee8d 100644
--- a/admin/user/index.php
+++ b/admin/user/index.php
@@ -54,11 +54,6 @@ foreach($users as $User) {
#===============================================================================
# Build document
#===============================================================================
-$PaginationTemplate = Template\Factory::build('pagination');
-$PaginationTemplate->set('THIS', $currentSite);
-$PaginationTemplate->set('LAST', $lastSite);
-$PaginationTemplate->set('HREF', Application::getAdminURL('user/?site=%d'));
-
$ListTemplate = Template\Factory::build('user/index');
$ListTemplate->set('LIST', [
'USERS' => $templates ?? []
@@ -67,7 +62,9 @@ $ListTemplate->set('LIST', [
$ListTemplate->set('PAGINATION', [
'THIS' => $currentSite,
'LAST' => $lastSite,
- 'HTML' => $PaginationTemplate
+ 'HTML' => createPaginationTemplate(
+ $currentSite, $lastSite, Application::getAdminURL('user/')
+ )
]);
$MainTemplate = Template\Factory::build('main');