ENHANCEMENT Use less expensive i18n defaults in Member::populateDefaults()

Fixes #7381
This commit is contained in:
Damian Mooyman 2017-09-29 16:40:17 +13:00
parent 91943c03e5
commit f4b1417612
No known key found for this signature in database
GPG Key ID: 78B823A10DE27D1A

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