[forumdirectory] Use new Pager constructor and renderFull signatures
parent
6f421a74c6
commit
d4340af4fc
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue