[forumdirectory] Use new Pager constructor and renderFull signatures

pull/762/head
Hypolite Petovan 2018-10-24 20:18:22 -04:00
parent 6f421a74c6
commit d4340af4fc
1 changed files with 2 additions and 2 deletions

View File

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