From f51f7074c7a0db071ebe9a20259ba5e122296878 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 21 Apr 2007 21:30:22 +0000 Subject: [PATCH] Instead of using the revision argument in log.php to hold the page number, just tack on a GET paramater --- log.php | 4 ++-- templates/default/pagenav.tpl | 8 ++++---- templates/default/pagenav_bit.tpl | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/log.php b/log.php index a660513..eabf723 100644 --- a/log.php +++ b/log.php @@ -47,7 +47,7 @@ function _PageNavCallback($baselink, $nextpage, $prevpage, $show, $pagebits, $pa } $paginate->setPageLinks(2); -$paginate->setPageVar('rev'); +$paginate->setPageVar('p'); $paginate->setMaxPerPage(20); $paginate->setDefaultPerPage(20); $paginate->setBitProcessor('_PageBitCallback'); @@ -80,7 +80,7 @@ for ($i = $paginate->fetchLimit() - $paginate->getPerPage(); $i < $paginate->fet eval('$nodes .= "' . $template->fetch('log_node') . '";'); } -$pagenav = $paginate->constructPageNav(ConstructLink('log', $input->in['repos'], $input->in['path'], 0), false); +$pagenav = $paginate->constructPageNav(ConstructLink('log', $input->in['repos'], $input->in['path'], 0) . '&', false); // ################################################################### diff --git a/templates/default/pagenav.tpl b/templates/default/pagenav.tpl index 60f6611..f9067c1 100644 --- a/templates/default/pagenav.tpl +++ b/templates/default/pagenav.tpl @@ -1,7 +1,7 @@
- {@"First"} ... - {@"Prev"} ... + {@"First"} ... + {@"Prev"} ... $pagebits - ... {@"Next"} - ... {@"Last"} + ... {@"Next"} + ... {@"Last"}
\ No newline at end of file diff --git a/templates/default/pagenav_bit.tpl b/templates/default/pagenav_bit.tpl index 0a7a220..3782e30 100644 --- a/templates/default/pagenav_bit.tpl +++ b/templates/default/pagenav_bit.tpl @@ -1 +1 @@ - $number$number \ No newline at end of file + $number$number \ No newline at end of file -- 2.43.5