aboutsummaryrefslogtreecommitdiff
path: root/views/default/admin/users
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/admin/users')
-rw-r--r--views/default/admin/users/add.php1
-rw-r--r--views/default/admin/users/newest.php23
-rw-r--r--views/default/admin/users/online.php21
3 files changed, 17 insertions, 28 deletions
diff --git a/views/default/admin/users/add.php b/views/default/admin/users/add.php
index 9caeedd89..83cad6106 100644
--- a/views/default/admin/users/add.php
+++ b/views/default/admin/users/add.php
@@ -3,5 +3,4 @@
* Display an add user form.
*/
-echo elgg_view_title(elgg_echo('admin:users'));
echo elgg_view('forms/useradd', array('show_admin'=>true)); \ No newline at end of file
diff --git a/views/default/admin/users/newest.php b/views/default/admin/users/newest.php
index 4d5b85836..c224df215 100644
--- a/views/default/admin/users/newest.php
+++ b/views/default/admin/users/newest.php
@@ -1,17 +1,14 @@
<?php
// newest users
-if (is_plugin_enabled('profile')) {
- $users = elgg_list_entities(array(
- 'type' => 'user', 'subtype'=>null,
- 'full_view' => FALSE
- ));
+$users = elgg_list_entities(array(
+ 'type' => 'user',
+ 'subtype'=> null,
+ 'full_view' => FALSE
+));
- echo elgg_view_title(elgg_echo('admin:users'));
- ?>
+?>
- <div class="admin_settings members-list users_online">
- <h3><?php echo elgg_echo('admin:users:newest'); ?></h3>
- <?php echo $users; ?>
- </div>
-<?php
-} \ No newline at end of file
+<div class="admin_settings members-list users_online">
+ <h3><?php echo elgg_echo('admin:users:newest'); ?></h3>
+ <?php echo $users; ?>
+</div>
diff --git a/views/default/admin/users/online.php b/views/default/admin/users/online.php
index 9c0f52c7f..aa3515948 100644
--- a/views/default/admin/users/online.php
+++ b/views/default/admin/users/online.php
@@ -1,16 +1,9 @@
<?php
-// users online
-if ((is_plugin_enabled('search')) && (is_plugin_enabled('profile'))) {
- elgg_push_context('search');
- $users_online = get_online_users();
- elgg_pop_context();
-
- echo elgg_view_title(elgg_echo('admin:users'));
- ?>
- <div class="admin_settings members-list users_online">
- <h3><?php echo elgg_echo('admin:statistics:label:onlineusers'); ?></h3>
- <?php echo $users_online; ?>
- </div>
-<?php
-} \ No newline at end of file
+$users_online = get_online_users();
+
+?>
+<div class="admin_settings members-list users_online">
+ <h3><?php echo elgg_echo('admin:statistics:label:onlineusers'); ?></h3>
+ <?php echo $users_online; ?>
+</div>