mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#19921: Media - fixing stereotype name typo.
Work Item: 19921 --HG-- branch : 1.x
This commit is contained in:
@@ -36,7 +36,7 @@ namespace Orchard.MediaLibrary.Services {
|
||||
|
||||
public IEnumerable<string> GetMediaTypes() {
|
||||
return _orchardServices.ContentManager.GetContentTypeDefinitions()
|
||||
.Where(contentTypeDefinition => contentTypeDefinition.Settings.ContainsKey("Stereotype") && contentTypeDefinition.Settings["Stereotype"] == "Widget")
|
||||
.Where(contentTypeDefinition => contentTypeDefinition.Settings.ContainsKey("Stereotype") && contentTypeDefinition.Settings["Stereotype"] == "Media")
|
||||
.Select(contentTypeDefinition => contentTypeDefinition.Name);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user