aboutsummaryrefslogtreecommitdiff
path: root/views/default/navigation
diff options
context:
space:
mode:
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>";