From f4b1417612426e1f7e26c3b31f2be5a403a2a1e3 Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Fri, 29 Sep 2017 16:40:17 +1300 Subject: [PATCH] ENHANCEMENT Use less expensive i18n defaults in Member::populateDefaults() Fixes #7381 --- src/Security/Member.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Security/Member.php b/src/Security/Member.php index a7a89a52d..0b725f11c 100644 --- a/src/Security/Member.php +++ b/src/Security/Member.php @@ -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()