mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
ENHANCEMENT New Member records are populated with the currently set default through i18n::set_locale()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@108499 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
c7bef99190
commit
f9257a6035
@ -1726,7 +1726,8 @@ class i18n extends Object {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the current locale
|
* Get the current locale.
|
||||||
|
* Used by {@link Member::populateDefaults()}
|
||||||
*
|
*
|
||||||
* @return string Current locale in the system
|
* @return string Current locale in the system
|
||||||
*/
|
*/
|
||||||
|
@ -110,13 +110,12 @@ class Member extends DataObject {
|
|||||||
*/
|
*/
|
||||||
protected static $login_marker_cookie = null;
|
protected static $login_marker_cookie = null;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ensure the locale is set to something sensible by default.
|
* Ensure the locale is set to something sensible by default.
|
||||||
*/
|
*/
|
||||||
public function populateDefaults() {
|
public function populateDefaults() {
|
||||||
parent::populateDefaults();
|
parent::populateDefaults();
|
||||||
$this->Locale = i18n::default_locale();
|
$this->Locale = i18n::get_locale();
|
||||||
}
|
}
|
||||||
|
|
||||||
function requireDefaultRecords() {
|
function requireDefaultRecords() {
|
||||||
@ -646,7 +645,7 @@ class Member extends DataObject {
|
|||||||
);
|
);
|
||||||
|
|
||||||
// Overwrite the Password property with the hashed value
|
// Overwrite the Password property with the hashed value
|
||||||
; $this->Password = $encryption_details['password'];
|
$this->Password = $encryption_details['password'];
|
||||||
$this->Salt = $encryption_details['salt'];
|
$this->Salt = $encryption_details['salt'];
|
||||||
$this->PasswordEncryption = $encryption_details['algorithm'];
|
$this->PasswordEncryption = $encryption_details['algorithm'];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user