User "Kaldari" posted a comment on MediaWiki.r103514.
Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/103514#c26296
Commit summary:
Fixing issue with currency JPY. The amount is floored for the last two digits.
Comment:
This seems like overkill. Why not just insert the following immediately before
it gets multiplied by 100:
<pre>
if ( $this->staged_data['currency_code'] == 'JPY' ) {
$this->staged_data['amount'] = floor( $this->staged_data['amount'] );
}
</pre>
and get rid of the rest?
_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview