1
1
Fork 0

Fix usages of Pager with JSON calls in mod/match and mod/dirfind

This commit is contained in:
Hypolite Petovan 2018-10-24 12:03:14 -04:00
commit dde8d8976d
2 changed files with 15 additions and 15 deletions

View file

@ -54,7 +54,7 @@ function match_content(App $a)
$tags = trim($r[0]['pub_keywords'] . ' ' . $r[0]['prv_keywords']);
if ($tags) {
$pager = new Pager($a->query_string, $j->items_page);
$pager = new Pager($a->query_string);
$params['s'] = $tags;
if ($pager->getPage() != 1) {
@ -70,6 +70,8 @@ function match_content(App $a)
$j = json_decode($x);
if (count($j->results)) {
$pager->setItemsPerPage($j->items_page);
$id = 0;
foreach ($j->results as $jj) {