mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Adding homepage to list of cultures
This commit is contained in:
@@ -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()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user