From a021d3b54ff6f5024b9aad2ee3376fd9ccbfb6dd Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Thu, 25 Jan 2018 06:15:23 -0500 Subject: [PATCH] Fix issue processwire/processwire-issues#467 correct typo in PaginatedArray sprintf string --- wire/core/PaginatedArray.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wire/core/PaginatedArray.php b/wire/core/PaginatedArray.php index 034f2e63..9a2680dc 100644 --- a/wire/core/PaginatedArray.php +++ b/wire/core/PaginatedArray.php @@ -203,7 +203,7 @@ class PaginatedArray extends WireArray implements WirePaginatable { $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 {