Add L10n parameter to Pager classes
This commit is contained in:
parent
682fb7e4e2
commit
561472b975
20 changed files with 53 additions and 52 deletions
|
@ -1023,7 +1023,7 @@ function photos_content(App $a)
|
|||
$total = count($r);
|
||||
}
|
||||
|
||||
$pager = new Pager(DI::args()->getQueryString(), 20);
|
||||
$pager = new Pager(DI::l10n(), DI::args()->getQueryString(), 20);
|
||||
|
||||
/// @TODO I have seen this many times, maybe generalize it script-wide and encapsulate it?
|
||||
$order_field = $_GET['order'] ?? '';
|
||||
|
@ -1299,7 +1299,7 @@ function photos_content(App $a)
|
|||
$condition = ["`parent` = ? AND `parent` != `id`", $link_item['parent']];
|
||||
$total = DBA::count('item', $condition);
|
||||
|
||||
$pager = new Pager(DI::args()->getQueryString());
|
||||
$pager = new Pager(DI::l10n(), DI::args()->getQueryString());
|
||||
|
||||
$params = ['order' => ['id'], 'limit' => [$pager->getStart(), $pager->getItemsPerPage()]];
|
||||
$result = Item::selectForUser($link_item['uid'], Item::ITEM_FIELDLIST, $condition, $params);
|
||||
|
@ -1565,7 +1565,7 @@ function photos_content(App $a)
|
|||
$total = count($r);
|
||||
}
|
||||
|
||||
$pager = new Pager(DI::args()->getQueryString(), 20);
|
||||
$pager = new Pager(DI::l10n(), DI::args()->getQueryString(), 20);
|
||||
|
||||
$r = q("SELECT `resource-id`, ANY_VALUE(`id`) AS `id`, ANY_VALUE(`filename`) AS `filename`,
|
||||
ANY_VALUE(`type`) AS `type`, ANY_VALUE(`album`) AS `album`, max(`scale`) AS `scale`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue