From 9ad20de616eb414a24394772dd548522fd000da2 Mon Sep 17 00:00:00 2001 From: ben Date: Sun, 22 Jun 2008 21:54:25 +0000 Subject: Introducing the annotation listing functions. git-svn-id: https://code.elgg.org/elgg/trunk@1047 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/navigation/pagination.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'views') 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']); ?> -- cgit v1.2.3