Browse Source

fix #9108 ( Negative number results in no formatting when using asSize or asShortSize )

9899-cache-bug
nxnx 9 years ago committed by Carsten Brandt
parent
commit
b562b50658
  1. 2
      framework/i18n/Formatter.php

2
framework/i18n/Formatter.php

@ -1134,7 +1134,7 @@ class Formatter extends Component
$position = 0;
do {
if ($value < $this->sizeFormatBase) {
if (abs($value) < $this->sizeFormatBase) {
break;
}
$value = $value / $this->sizeFormatBase;

Loading…
Cancel
Save