]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #4293 removed unnecessary get_input('offset') calls since elgg_list_entities...
authorCash Costello <cash.costello@gmail.com>
Sat, 21 Jan 2012 02:20:32 +0000 (21:20 -0500)
committerCash Costello <cash.costello@gmail.com>
Sat, 21 Jan 2012 02:20:32 +0000 (21:20 -0500)
engine/classes/ElggUser.php
engine/lib/statistics.php
mod/bookmarks/pages/bookmarks/all.php
mod/bookmarks/pages/bookmarks/owner.php
views/default/core/settings/tools.php

index bdf57c2c3f6d5ff00d69e5919794eae52be9afcb..d37a1a10d4b0470c2f0308c273e0dc4bb62fe8d2 100644 (file)
@@ -384,7 +384,6 @@ class ElggUser extends ElggEntity
                        'relationship' => 'friend',
                        'relationship_guid' => $this->guid,
                        'limit' => $limit,
-                       'offset' => get_input('offset', 0),
                        'full_view' => false,
                );
 
index 7c170f3bb78f3c0908d00f7f1c3b0d6fdc16fa06..e1f95ed974da7c103590766b4b3f8e6735cbf148 100644 (file)
@@ -95,14 +95,12 @@ function get_number_users($show_deactivated = false) {
  * @return string
   */
 function get_online_users() {
-       $offset = get_input('offset', 0);
        $count = find_active_users(600, 10, $offset, true);
        $objects = find_active_users(600, 10, $offset);
 
        if ($objects) {
                return elgg_view_entity_list($objects, array(
                        'count' => $count,
-                       'offset' => $offset,
                        'limit' => 10
                ));
        }
index f577767521c9880b4c2d47cdff587ee41edf2f3b..bdb8fc793e26b18ed08d8a2dc80849a1c688f6fd 100644 (file)
@@ -10,12 +10,10 @@ elgg_push_breadcrumb(elgg_echo('bookmarks'));
 
 elgg_register_title_button();
 
-$offset = (int)get_input('offset', 0);
 $content = elgg_list_entities(array(
        'type' => 'object',
        'subtype' => 'bookmarks',
        'limit' => 10,
-       'offset' => $offset,
        'full_view' => false,
        'view_toggle_type' => false
 ));
index 7f55e08de3126ad1758082d9ad4534410fd80dab..a024ff3523e070edb849239b9e981e619a208aef 100644 (file)
@@ -14,13 +14,11 @@ elgg_push_breadcrumb($page_owner->name);
 
 elgg_register_title_button();
 
-$offset = (int)get_input('offset', 0);
 $content .= elgg_list_entities(array(
        'type' => 'object',
        'subtype' => 'bookmarks',
        'container_guid' => $page_owner->guid,
        'limit' => 10,
-       'offset' => $offset,
        'full_view' => false,
        'view_toggle_type' => false
 ));
index a249adf82c300e1fcf3ab60b1c4499a1f166e771..195db1d612b8ae26805627ded749127d8a2dbcc3 100644 (file)
@@ -14,9 +14,6 @@ echo elgg_view('output/longtext', array(
        'class' => 'user-settings mtn mbm',
 ));
 
-$limit = get_input('limit', 10);
-$offset = get_input('offset', 0);
-
 // Get the installed plugins
 $installed_plugins = $vars['installed_plugins'];
 $count = count($installed_plugins);