aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-05 20:52:56 +0000
committernickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-05 20:52:56 +0000
commit20f40a7216bb3ef7b9961a24bc329e91b93b8353 (patch)
treea962e927930ed853a4ea48ec518d4790ce827c49
parentadad5a2ea53a69e58a39c37871d31782c00354a9 (diff)
downloadelgg-20f40a7216bb3ef7b9961a24bc329e91b93b8353.tar.gz
elgg-20f40a7216bb3ef7b9961a24bc329e91b93b8353.tar.bz2
Metadata lists will default offset and limit to existing url elements.
git-svn-id: http://code.elgg.org/elgg/trunk@5628 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/metadata.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/metadata.php b/engine/lib/metadata.php
index cde9eeeff..71337db09 100644
--- a/engine/lib/metadata.php
+++ b/engine/lib/metadata.php
@@ -1011,8 +1011,8 @@ function list_entities_from_metadata($meta_name, $meta_value = "", $entity_type
*/
function elgg_list_entities_from_metadata($options) {
$defaults = array(
- 'offset' => 0,
- 'limit' => 10,
+ 'offset' => get_input('offset', 0),
+ 'limit' => get_input('limit', 10),
'full_view' => TRUE,
'view_type_toggle' => FALSE,
'pagination' => TRUE