Index: trunk/extensions/ContributionReporting/ContributionHistory_body.php |
— | — | @@ -97,12 +97,15 @@ |
98 | 98 | } |
99 | 99 | |
100 | 100 | function formatAmount( $row ) { |
| 101 | + global $wgLang; |
| 102 | + $converted = $row['converted_amount']; |
| 103 | + |
101 | 104 | if ( $row['original_currency'] ) { |
102 | 105 | $currency = $row['original_currency']; |
103 | 106 | $amount = $row['original_amount']; |
104 | 107 | } else { |
105 | 108 | $currency = 'USD'; |
106 | | - $amount = $row['converted_amount']; |
| 109 | + $amount = $converted; |
107 | 110 | } |
108 | 111 | |
109 | 112 | if ( $currency == 'JPY' ) { |
— | — | @@ -110,6 +113,8 @@ |
111 | 114 | $amount = intval( $amount ); |
112 | 115 | } |
113 | 116 | |
114 | | - return htmlspecialchars( "$currency $amount" ); |
| 117 | + return Xml::element( 'span', |
| 118 | + array( 'title' => "USD " . $this->lang->formatNum( $converted ) ), |
| 119 | + "$currency " . $this->lang->formatNum( $amount ) ); |
115 | 120 | } |
116 | 121 | } |