CalculateNumberOfPages() way too complicated
sirlancelot
New
library/Framework/Framework.Functions.php @ line 118function CalculateNumberOfPages($ItemCount, $ItemsPerPage) {
$PageCount = ceil($ItemCount/$ItemsPerPage);
return ForceInt($PageCount, 1);
}
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.
0
Comments