diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-23 08:37:02 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-23 08:37:02 +0000 |
commit | 4784ee829a5f804a77c6ae8747faf443860a6ed5 (patch) | |
tree | 0cb53f9ab03c3568249cb5fd825260895dff2c55 /views/default/navigation/pagination.php | |
parent | b06f14b3d9245ef79bafae0011deb0873d2b19f5 (diff) | |
download | elgg-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/pagination.php')
-rw-r--r-- | views/default/navigation/pagination.php | 8 |
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}\">« ". 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") . " »</a>";
|