]> git.mxchange.org Git - friendica.git/commitdiff
Update Pager->__construct calls for minimal use cases
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 24 Oct 2018 15:50:37 +0000 (11:50 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Thu, 25 Oct 2018 04:07:16 +0000 (00:07 -0400)
mod/community.php
mod/notes.php
mod/notifications.php
mod/profile.php

index 7474fc24290b569cb77cd86c1d13762c827844a1..1017698eaa5c134f5f5f24115f4f9f68070f8fc1 100644 (file)
@@ -154,7 +154,7 @@ function community_content(App $a, $update = 0)
                $itemspage_network = $a->force_max_items;
        }
 
-       $pager = new Pager($a->query_string, null, $itemspage_network);
+       $pager = new Pager($a->query_string, $itemspage_network);
 
        $r = community_getitems($pager->getStart(), $pager->getItemsPerPage(), $content, $accounttype);
 
index b6b6faefab2a275728ffdade428001d23b4f0481..01e6e5ab991d7712343ab746bfb432aa8c517b9d 100644 (file)
@@ -61,7 +61,7 @@ function notes_content(App $a, $update = false)
        $condition = ['uid' => local_user(), 'post-type' => Item::PT_PERSONAL_NOTE, 'gravity' => GRAVITY_PARENT,
                'wall' => false, 'contact-id'=> $a->contact['id']];
 
-       $pager = new Pager($a->query_string, null, 40);
+       $pager = new Pager($a->query_string, 40);
 
        $params = ['order' => ['created' => true],
                'limit' => [$pager->getStart(), $pager->getItemsPerPage()]];
index 748af40d5dc76729f1473018993639497284d028..81084c1bc3f180a5c71297d2cdcdf01e6efcc65a 100644 (file)
@@ -121,7 +121,7 @@ function notifications_content(App $a)
        }
 
        // Set the pager
-       $pager = new Pager($a->query_string, null, $perpage);
+       $pager = new Pager($a->query_string, $perpage);
 
        // Add additional informations (needed for json output)
        $notifs['items_page'] = $pager->getItemsPerPage();
index 2cea4eedf447e184561257bddaac82fd8060e75b..d068fca47bd0802dbf7757f41d4178f77a847581 100644 (file)
@@ -308,7 +308,7 @@ function profile_content(App $a, $update = 0)
                        $itemspage_network = $a->force_max_items;
                }
 
-               $pager = new Pager($a->query_string, null, $itemspage_network);
+               $pager = new Pager($a->query_string, $itemspage_network);
 
                $pager_sql = sprintf(" LIMIT %d, %d ", $pager->getStart(), $pager->getItemsPerPage());