aboutsummaryrefslogtreecommitdiff
path: root/views/default/navigation/pagination.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-22 21:54:25 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-22 21:54:25 +0000
commit9ad20de616eb414a24394772dd548522fd000da2 (patch)
tree9793a9d15e0355883f2874c749679cf5f604b7e4 /views/default/navigation/pagination.php
parent11512c0b3ef34ebf5b66e98c9c11cbbad074c037 (diff)
downloadelgg-9ad20de616eb414a24394772dd548522fd000da2.tar.gz
elgg-9ad20de616eb414a24394772dd548522fd000da2.tar.bz2
Introducing the annotation listing functions.
git-svn-id: https://code.elgg.org/elgg/trunk@1047 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/navigation/pagination.php')
-rw-r--r--views/default/navigation/pagination.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/views/default/navigation/pagination.php b/views/default/navigation/pagination.php
index b96ce32d1..d2a2eca51 100644
--- a/views/default/navigation/pagination.php
+++ b/views/default/navigation/pagination.php
@@ -27,11 +27,16 @@
} else {
$count = $vars['count'];
}
+ if (!isset($vars['word'])) {
+ $word = "offset";
+ } else {
+ $word = $vars['word'];
+ }
$totalpages = ceil($count / $limit);
$currentpage = ceil($offset / $limit) + 1;
- $baseurl = preg_replace('/[\&\?]offset\=[0-9]*/',"",$vars['baseurl']);
+ $baseurl = preg_replace('/[\&\?]'.$word.'\=[0-9]*/',"",$vars['baseurl']);
?>