aboutsummaryrefslogtreecommitdiff
path: root/views/default/navigation
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-23 08:37:02 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-23 08:37:02 +0000
commit4784ee829a5f804a77c6ae8747faf443860a6ed5 (patch)
tree0cb53f9ab03c3568249cb5fd825260895dff2c55 /views/default/navigation
parentb06f14b3d9245ef79bafae0011deb0873d2b19f5 (diff)
downloadelgg-4784ee829a5f804a77c6ae8747faf443860a6ed5.tar.gz
elgg-4784ee829a5f804a77c6ae8747faf443860a6ed5.tar.bz2
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
Diffstat (limited to 'views/default/navigation')
-rw-r--r--views/default/navigation/pagination.php8
1 files changed, 4 insertions, 4 deletions
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 "<a href=\"{$prevurl}\">&laquo; ". elgg_echo("previous") ."</a> ";
@@ -77,9 +77,9 @@
$nexturl = $baseurl;
if (substr_count($baseurl,'?')) {
- $nexturl .= "&offset=" . $nextoffset;
+ $nexturl .= "&{$word}=" . $nextoffset;
} else {
- $nexturl .= "?offset=" . $nextoffset;
+ $nexturl .= "?{$word}=" . $nextoffset;
}
echo " <a href=\"{$nexturl}\">" . elgg_echo("next") . " &raquo;</a>";