Skip to content

Commit 80b1782

Browse files
Merge pull request #18668 from kamil-tekiela/Add-number-formatting-to-Total-on-Browse
Add number formatting to Total on Browse
2 parents d36d010 + 513742a commit 80b1782

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

libraries/classes/Display/Results.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3709,13 +3709,13 @@ private function setMessageInformation(
37093709
if ($messageViewWarning === false) {
37103710
if ($unlimNumRows != $total) {
37113711
$messageTotal = Message::notice(
3712-
$preCount . __('%1$d total, %2$d in query'),
3712+
$preCount . __('%1$s total, %2$s in query'),
37133713
);
3714-
$messageTotal->addParam($total);
3715-
$messageTotal->addParam($unlimNumRows);
3714+
$messageTotal->addParam(Util::formatNumber($total, 0));
3715+
$messageTotal->addParam(Util::formatNumber($unlimNumRows, 0));
37163716
} else {
3717-
$messageTotal = Message::notice($preCount . __('%d total'));
3718-
$messageTotal->addParam($total);
3717+
$messageTotal = Message::notice($preCount . __('%s total'));
3718+
$messageTotal->addParam(Util::formatNumber($total, 0));
37193719
}
37203720

37213721
if ($afterCount !== '') {

phpstan-baseline.neon

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10055,6 +10055,11 @@ parameters:
1005510055
count: 5
1005610056
path: libraries/classes/Display/Results.php
1005710057

10058+
-
10059+
message: "#^Parameter \\#1 \\$value of static method PhpMyAdmin\\\\Util\\:\\:formatNumber\\(\\) expects float\\|int\\|string, int\\|string\\|false given\\.$#"
10060+
count: 1
10061+
path: libraries/classes/Display/Results.php
10062+
1005810063
-
1005910064
message: "#^Parameter \\#2 \\$columnValue of method PhpMyAdmin\\\\Display\\\\Results\\:\\:getSpecialLinkUrl\\(\\) expects string, mixed given\\.$#"
1006010065
count: 1

0 commit comments

Comments
 (0)