Adding homepage to list of cultures

This commit is contained in:
Nicholas Mayne
2015-01-26 13:27:15 +00:00
parent d27fa1d413
commit 6da71470dd
@@ -1,5 +1,4 @@
@using System @using System.Globalization
@using System.Globalization
@using Orchard.Alias @using Orchard.Alias
@using Orchard.ContentManagement @using Orchard.ContentManagement
@using Orchard.ContentManagement.Aspects @using Orchard.ContentManagement.Aspects
@@ -11,7 +10,7 @@
if (homePage != null) { if (homePage != null) {
var localizationService = WorkContext.Resolve<ILocalizationService>(); var localizationService = WorkContext.Resolve<ILocalizationService>();
localizableAspects = localizationService.GetLocalizations(homePage); localizableAspects = localizationService.GetLocalizations(homePage).Concat<ILocalizableAspect>(new[] { homePage.As<ILocalizableAspect>() });
} }
} }
@if (localizableAspects.Any()) { @if (localizableAspects.Any()) {