mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-23 21:32:14 +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.ContentManagement
|
||||
@using Orchard.ContentManagement.Aspects
|
||||
@@ -11,7 +10,7 @@
|
||||
|
||||
if (homePage != null) {
|
||||
var localizationService = WorkContext.Resolve<ILocalizationService>();
|
||||
localizableAspects = localizationService.GetLocalizations(homePage);
|
||||
localizableAspects = localizationService.GetLocalizations(homePage).Concat<ILocalizableAspect>(new[] { homePage.As<ILocalizableAspect>() });
|
||||
}
|
||||
}
|
||||
@if (localizableAspects.Any()) {
|
||||
|
||||
Reference in New Issue
Block a user