Permalink
Browse files

Fix lastItem property/placeholder

Initial implementation was incremented incorrectly by 1.
  • Loading branch information...
1 parent 3ad3c0d commit d294cf480dd7231552f229f6f1062773d2925bfa @opengeek opengeek committed Aug 19, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/components/getpage/snippet.getpage.php
@@ -64,7 +64,7 @@
}
$properties['firstItem'] = $properties['offset'] + 1;
- $properties['lastItem'] = ($properties['offset'] + $properties['limit'] + 1) < $totalSet ? ($properties['offset'] + $properties['limit'] + 1) : $totalSet;
+ $properties['lastItem'] = ($properties['offset'] + $properties['limit']) < $totalSet ? ($properties['offset'] + $properties['limit']) : $totalSet;
$properties['pageUrl'] = $modx->makeUrl($modx->resource->get('id'), '', $qs);
if ($properties['cache'] && $modx->getCacheManager()) {

0 comments on commit d294cf4

Please sign in to comment.