aboutsummaryrefslogtreecommitdiffstats
path: root/admin/page
diff options
context:
space:
mode:
Diffstat (limited to 'admin/page')
-rw-r--r--admin/page/index.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/admin/page/index.php b/admin/page/index.php
index 2ec4eab..7586d3c 100644
--- a/admin/page/index.php
+++ b/admin/page/index.php
@@ -56,11 +56,6 @@ foreach($pages as $Page) {
#===============================================================================
# Build document
#===============================================================================
-$PaginationTemplate = Template\Factory::build('pagination');
-$PaginationTemplate->set('THIS', $currentSite);
-$PaginationTemplate->set('LAST', $lastSite);
-$PaginationTemplate->set('HREF', Application::getAdminURL('page/?site=%d'));
-
$ListTemplate = Template\Factory::build('page/index');
$ListTemplate->set('LIST', [
'PAGES' => $templates ?? []
@@ -69,7 +64,9 @@ $ListTemplate->set('LIST', [
$ListTemplate->set('PAGINATION', [
'THIS' => $currentSite,
'LAST' => $lastSite,
- 'HTML' => $PaginationTemplate
+ 'HTML' => createPaginationTemplate(
+ $currentSite, $lastSite, Application::getAdminURL('page/')
+ )
]);
$MainTemplate = Template\Factory::build('main');