Fix administration of screenshots so more than page 1 is displayed
This commit is contained in:
@@ -69,7 +69,7 @@ if($_REQUEST['page'])
|
|||||||
$currentPage = $_REQUEST['page'];
|
$currentPage = $_REQUEST['page'];
|
||||||
|
|
||||||
$ItemsPerPage = min($ItemsPerPage,100);
|
$ItemsPerPage = min($ItemsPerPage,100);
|
||||||
$totalPages = max(ceil($BugLinks/$ItemsPerPage),1);
|
$totalPages = ceil(getNumberOfImages()/$ItemsPerPage);
|
||||||
$currentPage = min($currentPage,$totalPages);
|
$currentPage = min($currentPage,$totalPages);
|
||||||
$offset = (($currentPage-1) * $ItemsPerPage);
|
$offset = (($currentPage-1) * $ItemsPerPage);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user