From 4784ee829a5f804a77c6ae8747faf443860a6ed5 Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 23 Jun 2008 08:37:02 +0000 Subject: Update for pagination, to allow it to properly take a word other than 'offset' as the word to work from. git-svn-id: https://code.elgg.org/elgg/trunk@1050 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/navigation/pagination.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'views/default/navigation') diff --git a/views/default/navigation/pagination.php b/views/default/navigation/pagination.php index 81db71e61..589acae02 100644 --- a/views/default/navigation/pagination.php +++ b/views/default/navigation/pagination.php @@ -61,9 +61,9 @@ $prevurl = $baseurl; if (substr_count($baseurl,'?')) { - $prevurl .= "&offset=" . $prevoffset; + $prevurl .= "&{$word}=" . $prevoffset; } else { - $prevurl .= "?offset=" . $prevoffset; + $prevurl .= "?{$word}=" . $prevoffset; } echo "« ". elgg_echo("previous") ." "; @@ -77,9 +77,9 @@ $nexturl = $baseurl; if (substr_count($baseurl,'?')) { - $nexturl .= "&offset=" . $nextoffset; + $nexturl .= "&{$word}=" . $nextoffset; } else { - $nexturl .= "?offset=" . $nextoffset; + $nexturl .= "?{$word}=" . $nextoffset; } echo " " . elgg_echo("next") . " »"; -- cgit v1.2.3