]> git.mxchange.org Git - friendica-addons.git/commitdiff
[forumdirectory] Use new Pager constructor and renderFull signatures
authorHypolite Petovan <hypolite@mrpetovan.com>
Thu, 25 Oct 2018 00:18:22 +0000 (20:18 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Thu, 25 Oct 2018 00:18:22 +0000 (20:18 -0400)
forumdirectory/forumdirectory.php

index a5d27d4bb74a35986b01073e85f2f7d0e46330b1..54818cdb3e2da04387c307b179399aa9c9410a32 100644 (file)
@@ -113,7 +113,7 @@ function forumdirectory_content(App $a)
                $total = $r[0]['total'];
        }
 
-       $pager = new Pager($a->query_string, $total, 60);
+       $pager = new Pager($a->query_string, 60);
 
        $order = " ORDER BY `name` ASC ";
 
@@ -210,7 +210,7 @@ function forumdirectory_content(App $a)
                }
 
                $o .= "<div class=\"directory-end\" ></div>\r\n";
-               $o .= $pager->renderFull();
+               $o .= $pager->renderFull($total);
        } else {
                info(L10n::t("No entries \x28some entries may be hidden\x29.") . EOL);
        }