aboutsummaryrefslogtreecommitdiff
path: root/admin/user/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/user/index.php')
-rw-r--r--admin/user/index.php19
1 files changed, 11 insertions, 8 deletions
diff --git a/admin/user/index.php b/admin/user/index.php
index 87628020f..2f1073d71 100644
--- a/admin/user/index.php
+++ b/admin/user/index.php
@@ -17,20 +17,23 @@
// Make sure only valid admin users can see this
admin_gatekeeper();
- // Are we performing a search
- $search = get_input('s');
- $limit = get_input('limit', 10);
- $offset = get_input('offset', 0);
-
- $context = get_context();
+ // Set admin user for user block
+ set_page_owner($_SESSION['guid']);
+
+ // Are we performing a search
+ $search = get_input('s');
+ $limit = get_input('limit', 10);
+ $offset = get_input('offset', 0);
+
+ $context = get_context();
$title = elgg_view_title(elgg_echo('admin:user'));
- set_context('search');
+ set_context('search');
$result = list_entities('user');
- set_context('admin');
+ set_context('admin');
// Display main admin menu
page_draw(elgg_echo("admin:user"),