public function limit()
{
- return null;
+ return new PlLimit($this->entriesPerPage, $this->offset);
}
/** Name of the template to use for displaying items of the view
$res = $this->set->get($this->limit());
$show_bounds = $this->bounds();
- $start = current($res);
- $end = end($res);
if ($show_bounds) {
+ $start = current($res);
+ $end = end($res);
if ($show_bounds == 1) {
$first = $this->getBoundValue($start);
$last = $this->getBoundValue($end);