diff options
author | Thomas Lange <code@nerdmind.de> | 2021-07-02 20:32:17 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2021-07-02 20:32:17 +0200 |
commit | 299bff3d9e301d954731118c6526f422dc866e0d (patch) | |
tree | b374b3c798e57853d2a11bdd090e59661e82adb4 /admin/category | |
parent | f5f94531c9d5b369fdf9c287f63c41476496e5ee (diff) | |
download | blog-299bff3d9e301d954731118c6526f422dc866e0d.tar.gz blog-299bff3d9e301d954731118c6526f422dc866e0d.tar.xz blog-299bff3d9e301d954731118c6526f422dc866e0d.zip |
Use createPaginationTemplate also in admin area
Diffstat (limited to 'admin/category')
-rw-r--r-- | admin/category/index.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/admin/category/index.php b/admin/category/index.php index 429435a..35a78c3 100644 --- a/admin/category/index.php +++ b/admin/category/index.php @@ -50,11 +50,6 @@ foreach($categories as $Category) { #=============================================================================== # Build document #=============================================================================== -$PaginationTemplate = Template\Factory::build('pagination'); -$PaginationTemplate->set('THIS', $currentSite); -$PaginationTemplate->set('LAST', $lastSite); -$PaginationTemplate->set('HREF', Application::getAdminURL('category/?site=%d')); - $ListTemplate = Template\Factory::build('category/index'); $ListTemplate->set('LIST', [ 'CATEGORIES' => $templates ?? [] @@ -63,7 +58,9 @@ $ListTemplate->set('LIST', [ $ListTemplate->set('PAGINATION', [ 'THIS' => $currentSite, 'LAST' => $lastSite, - 'HTML' => $PaginationTemplate + 'HTML' => createPaginationTemplate( + $currentSite, $lastSite, Application::getAdminURL('category/') + ) ]); $MainTemplate = Template\Factory::build('main'); |