1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-11 17:24:46 +02:00

Fix issue processwire/processwire-issues#467 correct typo in PaginatedArray sprintf string

This commit is contained in:
Ryan Cramer
2018-01-25 06:15:23 -05:00
parent 7b1913b6ed
commit a021d3b54f

View File

@@ -203,7 +203,7 @@ class PaginatedArray extends WireArray implements WirePaginatable {
$pageNum = $start ? ($start / $limit) + 1 : 1; $pageNum = $start ? ($start / $limit) + 1 : 1;
$totalPages = ceil($total / $limit); $totalPages = ceil($total / $limit);
if(!$totalPages) $pageNum = 0; 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 { } else {