From 87341f9498cef58f8f00f886fc4aedd0efaf6912 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Wed, 30 Jun 2010 01:29:42 +0000 Subject: [PATCH] MINOR Code formatting fix for setting Member locale in LeftAndMain::init() git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@107305 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/LeftAndMain.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index 2fa501a5..43d86f53 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -101,9 +101,9 @@ class LeftAndMain extends Controller { // set language $member = Member::currentUser(); - if(!empty($member->Locale)) { - i18n::set_locale($member->Locale); - } + if(!empty($member->Locale)) i18n::set_locale($member->Locale); + if(!empty($member->DateFormat)) i18n::set_date_format($member->DateFormat); + if(!empty($member->TimeFormat)) i18n::set_time_format($member->TimeFormat); // can't be done in cms/_config.php as locale is not set yet CMSMenu::add_link(