From 1e925a9e91b0f9adcf9c130b4f9b2fab0a3fd652 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Wed, 13 Oct 2010 03:57:49 +0000 Subject: [PATCH] BUGFIX Choosing i18n::default_locale() in Member->populateDefaults() instead of "current locale". This fixes a bug where a new member created through admin/security automatically "inherits" the current locale settings of the admin creating it. (from r103582) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112149 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- security/Member.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/Member.php b/security/Member.php index a0a0807c5..080a30ebd 100755 --- a/security/Member.php +++ b/security/Member.php @@ -113,7 +113,7 @@ class Member extends DataObject { */ public function populateDefaults() { parent::populateDefaults(); - $this->Locale = i18n::get_locale(); + $this->Locale = i18n::default_locale(); } function requireDefaultRecords() {