aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--admin/plugins/index.php3
-rw-r--r--admin/site/index.php3
-rw-r--r--admin/statistics/index.php4
-rw-r--r--admin/user/index.php19
4 files changed, 20 insertions, 9 deletions
diff --git a/admin/plugins/index.php b/admin/plugins/index.php
index a464445a4..717e9bde0 100644
--- a/admin/plugins/index.php
+++ b/admin/plugins/index.php
@@ -18,6 +18,9 @@
// Make sure only valid admin users can see this
admin_gatekeeper();
+ // Set admin user for user block
+ set_page_owner($_SESSION['guid']);
+
// Display main admin menu
page_draw(elgg_echo("admin:plugins"),elgg_view_layout("two_column_left_sidebar", '', elgg_view_title(elgg_echo('admin:plugins')) . elgg_view("admin/plugins", array('installed_plugins' => get_installed_plugins()))));
diff --git a/admin/site/index.php b/admin/site/index.php
index 39df50563..ef35b9dfd 100644
--- a/admin/site/index.php
+++ b/admin/site/index.php
@@ -17,6 +17,9 @@
// Make sure only valid admin users can see this
admin_gatekeeper();
+ // Set admin user for user block
+ set_page_owner($_SESSION['guid']);
+
// Display main admin menu
page_draw(elgg_echo("admin:site"),elgg_view_layout("two_column_left_sidebar",'', elgg_view_title(elgg_echo('admin:site')) . elgg_view("admin/site")));
diff --git a/admin/statistics/index.php b/admin/statistics/index.php
index 593221f6d..dc318eeed 100644
--- a/admin/statistics/index.php
+++ b/admin/statistics/index.php
@@ -17,7 +17,9 @@
// Make sure only valid admin users can see this
admin_gatekeeper();
-
+
+ // Set admin user for user block
+ set_page_owner($_SESSION['guid']);
// Display main admin menu
page_draw(elgg_echo("admin:statistics"),elgg_view_layout("two_column_left_sidebar",'',elgg_view_title(elgg_echo('admin:statistics')) . elgg_view("admin/statistics")));
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"),