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:
Chris Joe 2017-10-02 13:03:44 +13:00 committed by GitHub
commit fe98555d0a

View File

@ -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()