It looks like you're new here. If you want to get involved, click one of these buttons!
I know it's only executed once per request, but inefficiency is my pet peeve. Even if it's just replacing 13 lines with 2. :)library/Framework/Framework.Functions.php @ line 118function CalculateNumberOfPages($ItemCount, $ItemsPerPage) {
$PageCount = ceil($ItemCount/$ItemsPerPage);
return ForceInt($PageCount, 1);
}
Comments