Skip to content

Commit

Permalink
ENHANCEMENT Use less expensive i18n defaults in Member::populateDefau…
Browse files Browse the repository at this point in the history
…lts()

Fixes #7381
  • Loading branch information
Damian Mooyman committed Sep 29, 2017
1 parent 91943c0 commit f4b1417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Security/Member.php
Expand Up @@ -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()
Expand Down

0 comments on commit f4b1417

Please sign in to comment.