aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authornickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-05 20:13:36 +0000
committernickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-05 20:13:36 +0000
commit8c3f28568fb67c22554461da9d4f9ddec0427446 (patch)
tree913ee4c0ef42e5804147acd64a2b0b51c81dd2dc /engine
parent08d3f7f2820ed971ce5171c9ce9e15dbf452cf3f (diff)
downloadelgg-8c3f28568fb67c22554461da9d4f9ddec0427446.tar.gz
elgg-8c3f28568fb67c22554461da9d4f9ddec0427446.tar.bz2
Refs #1947: Do not require views to explicitly pass in the offset.
git-svn-id: http://code.elgg.org/elgg/trunk@5624 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/elgglib.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 9587bf1e4..8f383904d 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -743,8 +743,12 @@ function elgg_view_annotation(ElggAnnotation $annotation, $bypass = true, $debug
*/
function elgg_view_entity_list($entities, $count, $offset, $limit, $fullview = true, $viewtypetoggle = true, $pagination = true) {
$count = (int) $count;
- $offset = (int) $offset;
$limit = (int) $limit;
+
+ // do not require views to explicitly pass in the offset
+ if (!$offset = (int) $offset) {
+ $offset = get_input('offset', 0);
+ }
$context = get_context();