diff options
Diffstat (limited to 'mod/file/search.php')
-rw-r--r-- | mod/file/search.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/file/search.php b/mod/file/search.php index ed8846514..ea85e862d 100644 --- a/mod/file/search.php +++ b/mod/file/search.php @@ -70,13 +70,14 @@ // Set context set_context('search'); - + + $offset = (int)get_input('offset', 0); $limit = 10; if ($search_viewtype == "gallery") $limit = 12; if (!empty($tag)) { $area2 .= list_entities_from_metadata($md_type, $tag, 'object', 'file', $owner_guid, $limit); } else { - $area2 .= elgg_list_entities(array('types' => 'object', 'subtypes' => 'file', 'owner_guid' => $owner_guid, 'limit' => $limit)); + $area2 .= elgg_list_entities(array('types' => 'object', 'subtypes' => 'file', 'owner_guid' => $owner_guid, 'limit' => $limit, 'offset' => $offset)); } set_context("file"); |