mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-29 12:49:06 +02:00
FIX: Money should use current locale by default. (Fixes: #6558)
This commit is contained in:
parent
d6733caf14
commit
7ade1ebd59
@ -64,7 +64,7 @@ class Money extends DBField implements CompositeDBField {
|
|||||||
);
|
);
|
||||||
|
|
||||||
public function __construct($name = null) {
|
public function __construct($name = null) {
|
||||||
$this->currencyLib = new Zend_Currency(null, i18n::default_locale());
|
$this->currencyLib = new Zend_Currency(null, i18n::get_locale());
|
||||||
|
|
||||||
parent::__construct($name);
|
parent::__construct($name);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user