]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #1947: Do not require views to explicitly pass in the offset.
authornickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 5 Apr 2010 20:13:36 +0000 (20:13 +0000)
committernickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 5 Apr 2010 20:13:36 +0000 (20:13 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@5624 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/elgglib.php

index 9587bf1e4d5338af86a8cc8c41e971ea4c27f5b7..8f383904dd3642dcc20ed70e372c5d2ee988159e 100644 (file)
@@ -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();