From 10aa37d5257292b3aff2f7fefb96f9c02b7fbe2b Mon Sep 17 00:00:00 2001 From: marcus Date: Thu, 3 Jul 2008 14:15:57 +0000 Subject: Fixes #111 git-svn-id: https://code.elgg.org/elgg/trunk@1273 36083f99-b078-4883-b0ff-0f9b5a30f544 --- admin/user/index.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'admin') diff --git a/admin/user/index.php b/admin/user/index.php index e402ec1d2..09906fdf6 100644 --- a/admin/user/index.php +++ b/admin/user/index.php @@ -22,15 +22,20 @@ $limit = get_input('limit', 10); $offset = get_input('offset', 0); + $context = get_context(); + set_context('search'); + if ($search){ $entities = search_for_user($search, $limit, $offset, "",false); $count = search_for_user($search, $limit, $offset, "",true); - $result = elgg_view_entity_list($entities, $count, $offset, $limit); + $result = elgg_view_entity_list($entities, $count, $offset, $limit, false); } else - $result = list_entities_from_metadata("", $tag, "user", ""); - + $result = list_entities_from_metadata("", $tag, "user", "",0, $limit, false); + + + // Display main admin menu page_draw(elgg_echo("admin:user"),elgg_view_layout("one_column", elgg_view("admin/user", array('list' => $result)))); - + set_context($context); ?> \ No newline at end of file -- cgit v1.2.3