Ensure PublishedRequest always has a culture

This commit is contained in:
Stephan
2018-08-01 10:42:50 +02:00
parent 638f71d80e
commit f049d1b479

View File

@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Threading;
using System.Web;
using umbraco;
using Umbraco.Core.Configuration;
@@ -345,7 +346,7 @@ namespace Umbraco.Web.Routing
/// </summary>
public CultureInfo Culture
{
get { return _culture; }
get { return _culture ?? Thread.CurrentThread.CurrentCulture; }
set
{
EnsureWriteable();