diff options
Diffstat (limited to 'views')
-rw-r--r-- | views/default/navigation/pagination.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/views/default/navigation/pagination.php b/views/default/navigation/pagination.php index 0512aada1..11dfd0e86 100644 --- a/views/default/navigation/pagination.php +++ b/views/default/navigation/pagination.php @@ -38,8 +38,6 @@ if (isset($vars['nonefound'])) { $totalpages = ceil($count / $limit); $currentpage = ceil($offset / $limit) + 1; -//$baseurl = elgg_http_remove_url_query_element($vars['baseurl'], $word); - //only display if there is content to paginate through or if we already have an offset if (($count > $limit || $offset > 0) && get_context() != 'widget') { @@ -55,7 +53,7 @@ if (($count > $limit || $offset > 0) && get_context() != 'widget') { $prevoffset = 0; } - $prevurl = elgg_http_add_url_query_elements($baseurl, array($word => $prevoffset)); + $prevurl = elgg_http_add_url_query_elements($vars['baseurl'], array($word => $prevoffset)); echo "<a href=\"{$prevurl}\" class=\"pagination_previous\">« ". elgg_echo("previous") ."</a> "; } @@ -95,7 +93,7 @@ if (($count > $limit || $offset > 0) && get_context() != 'widget') { } $curoffset = (($i - 1) * $limit); - $counturl = elgg_http_add_url_query_elements($base_url, array($word => $curoffset)); + $counturl = elgg_http_add_url_query_elements($vars['baseurl'], array($word => $curoffset)); if ($curoffset != $offset) { echo " <a href=\"{$counturl}\" class=\"pagination_number\">{$i}</a> "; @@ -114,7 +112,7 @@ if (($count > $limit || $offset > 0) && get_context() != 'widget') { $nextoffset--; } - $nexturl = elgg_http_add_url_query_elements($baseurl, array($word => $nextoffset)); + $nexturl = elgg_http_add_url_query_elements($vars['baseurl'], array($word => $nextoffset)); echo " <a href=\"{$nexturl}\" class=\"pagination_next\">" . elgg_echo("next") . " »</a>"; |