]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #4627 removes pagination
authorCash Costello <cash.costello@gmail.com>
Fri, 6 Jul 2012 00:47:33 +0000 (20:47 -0400)
committerCash Costello <cash.costello@gmail.com>
Fri, 6 Jul 2012 00:47:33 +0000 (20:47 -0400)
mod/reportedcontent/views/default/widgets/reportedcontent/content.php
views/default/widgets/new_users/content.php
views/default/widgets/online_users/content.php

index 4f8906ef2e055de1f0876c2e6236f45b758684d5..4c65956537e40dce4a6b895b775836e5e8f08fe6 100644 (file)
@@ -7,6 +7,7 @@ $list = elgg_list_entities(array(
        'types' => 'object',
        'subtypes' => 'reported_content',
        'limit' => $vars['entity']->num_display,
+       'pagination' => false,
 ));
 if (!$list) {
        $list = '<p class="mtm">' . elgg_echo('reportedcontent:none') . '</p>';
index 207a67a9d28f56809b1a88557675ffef97a5c65f..ba85e742100ab0f1976eb3d91b08cc9f9a26c1b6 100644 (file)
@@ -6,5 +6,6 @@
 echo elgg_list_entities(array(
        'type' => 'user',
        'subtype'=> null,
-       'full_view' => FALSE
+       'full_view' => false,
+       'pagination' => false,
 ));
\ No newline at end of file
index d81ff370596bc06b1d1413c4951658736e660bf7..6e0cc7abb7408e7b9144b442c84843d27c9a98eb 100644 (file)
@@ -3,4 +3,13 @@
  * Online users widget
  */
 
-echo $users_online = get_online_users();
\ No newline at end of file
+$count = find_active_users(600, 10, 0, true);
+$objects = find_active_users(600, 10);
+
+if ($objects) {
+       echo elgg_view_entity_list($objects, array(
+               'count' => $count,
+               'limit' => 10,
+               'pagination' => false,
+       ));
+}