mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
related to #1465 added beginning of pagination
This commit is contained in:
committed by
plegall
parent
6860c59453
commit
84dbdbabe8
@@ -969,6 +969,15 @@ SELECT
|
||||
|
||||
/** */
|
||||
}
|
||||
return [$result, $param];
|
||||
|
||||
/**
|
||||
* Pagination Time
|
||||
*/
|
||||
|
||||
$max_page = ceil(count($result)/100);
|
||||
$result = array_reverse($result, true);
|
||||
$result = array_slice($result, $param['pageNumber']*100, 100);
|
||||
|
||||
return [$result, $param, $max_page];
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user