Skip to content

Commit

Permalink
Fix issue processwire/processwire-issues#467 correct typo in Paginate…
Browse files Browse the repository at this point in the history
…dArray sprintf string
  • Loading branch information
ryancramerdesign committed Jan 25, 2018
1 parent 7b1913b commit a021d3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wire/core/PaginatedArray.php
Expand Up @@ -203,7 +203,7 @@ public function getPaginationString($label = '', $usePageNum = false) {
$pageNum = $start ? ($start / $limit) + 1 : 1;
$totalPages = ceil($total / $limit);
if(!$totalPages) $pageNum = 0;
$str = sprintf($this->_('%1$s %1$d of %2$d'), $label, $pageNum, $totalPages); // Page quantity, i.e. Page 1 of 3
$str = sprintf($this->_('%1$s %2$d of %3$d'), $label, $pageNum, $totalPages); // Page quantity, i.e. Page 1 of 3

} else {

Expand Down

0 comments on commit a021d3b

Please sign in to comment.