aboutsummaryrefslogtreecommitdiff
path: root/views/default/river
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-01-31 00:00:43 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-01-31 00:00:43 +0000
commite3d22584664b28d31aa138f7b82554694254aae2 (patch)
tree2b300cceed68ad9a4bb4bb78bf029f393b8512b3 /views/default/river
parentf5f185ddd307d218cbfab4dd53ec540caf54205e (diff)
downloadelgg-e3d22584664b28d31aa138f7b82554694254aae2.tar.gz
elgg-e3d22584664b28d31aa138f7b82554694254aae2.tar.bz2
Fixes #959: Added elgg_http_remove_url_query_element() to remove a GET element instead of using faulty regexp.
git-svn-id: http://code.elgg.org/elgg/trunk@3866 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/river')
-rw-r--r--views/default/river/item/list.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/default/river/item/list.php b/views/default/river/item/list.php
index 9508a0da6..f9d8dd283 100644
--- a/views/default/river/item/list.php
+++ b/views/default/river/item/list.php
@@ -26,7 +26,7 @@
if ($vars['pagination'] !== false) {
$baseurl = $_SERVER['REQUEST_URI'];
- $baseurl = $baseurl = preg_replace('/[\&\?]offset\=[0-9]*/',"",$baseurl);
+ $baseurl = elgg_http_remove_url_query_element($baseurl, 'offset');
$nav = '';