From a39955b0135f89ef41e583346fd459934a652025 Mon Sep 17 00:00:00 2001 From: matthiasgrimm Date: Mon, 23 May 2005 18:58:26 +0200 Subject: history navigation buttons This patch adds a 'next' and a 'previous' button to the history page. They make it possible to see more than one page of history data. darcs-hash:20050523165826-7ef76-77a2c21e8b172200f169e0aea8441e8b100ab278.gz --- inc/html.php | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) (limited to 'inc/html.php') diff --git a/inc/html.php b/inc/html.php index 370754c52..c9b1539f1 100644 --- a/inc/html.php +++ b/inc/html.php @@ -447,14 +447,22 @@ function html_revisions(){ * * @author Andreas Gohr */ -function html_recent(){ +function html_recent($first=0){ global $conf; global $lang; - $recents = getRecents(0,true); + $recents = getRecents(-1,true); + + if($first >= count($recents)) $first = 0; + $last = $first + $conf['recent']; + if ($last > count($recents)) + $last = count($recents); print p_locale_xhtml('recent'); print ''; + + print ''; } /** -- cgit v1.2.3