From db824d8daf62bb099a9ae0912cea02d5a03c986c Mon Sep 17 00:00:00 2001 From: Nicholas-Westby Date: Fri, 29 May 2015 21:02:07 -0700 Subject: [PATCH] Fixes U4-6665 (Localization Bug) Fix for localization not working some of the time: http://issues.umbraco.org/issue/U4-6665 --- src/Umbraco.Web/Editors/BackOfficeController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web/Editors/BackOfficeController.cs b/src/Umbraco.Web/Editors/BackOfficeController.cs index 13afce3f26..21e3145cb8 100644 --- a/src/Umbraco.Web/Editors/BackOfficeController.cs +++ b/src/Umbraco.Web/Editors/BackOfficeController.cs @@ -65,7 +65,7 @@ namespace Umbraco.Web.Editors [HttpGet] public JsonNetResult LocalizedText(string culture = null) { - var cultureInfo = culture == null + var cultureInfo = string.IsNullOrWhiteSpace(culture) //if the user is logged in, get their culture, otherwise default to 'en' ? User.Identity.IsAuthenticated && User.Identity is UmbracoBackOfficeIdentity ? Security.CurrentUser.GetUserCulture(Services.TextService)