User "Kaldari" posted a comment on MediaWiki.r103514.
Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/103514#c26300
Commit summary:
Fixing issue with currency JPY. The amount is floored for the last two digits.
Comment:
In that case, you could do:
<pre>
$floorCurrencies = array ( 'JPY' );
if ( in_array( $this->staged_data['currency_code'], $floorCurrencies ) {
$this->staged_data['amount'] = floor( $this->staged_data['amount'] );
}
</pre>
Do we really need to rewrite the floor function?
_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview