mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #7413 from open-sausages/pulls/4.0/member-i18n-speed
ENHANCEMENT Use less expensive i18n defaults in Member::populateDefaulateDefaults()
This commit is contained in:
commit
fe98555d0a
@ -260,7 +260,7 @@ class Member extends DataObject
|
||||
public function populateDefaults()
|
||||
{
|
||||
parent::populateDefaults();
|
||||
$this->Locale = i18n::get_closest_translation(i18n::get_locale());
|
||||
$this->Locale = i18n::get_locale();
|
||||
}
|
||||
|
||||
public function requireDefaultRecords()
|
||||
|
Loading…
Reference in New Issue
Block a user