mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
#17776: Making gallery feed Context ignore unknown properties.
--HG-- branch : 1.x
This commit is contained in:
@@ -72,7 +72,7 @@ namespace Orchard.Packaging.Services {
|
||||
return (packagingSource == null ? GetSources() : new[] {packagingSource})
|
||||
.SelectMany(
|
||||
source => {
|
||||
var galleryFeedContext = new GalleryFeedContext(new Uri(source.FeedUrl));
|
||||
var galleryFeedContext = new GalleryFeedContext(new Uri(source.FeedUrl)) { IgnoreMissingProperties = true };
|
||||
IQueryable<PublishedPackage> packages = includeScreenshots
|
||||
? galleryFeedContext.Packages.Expand("Screenshots")
|
||||
: galleryFeedContext.Packages;
|
||||
@@ -95,7 +95,7 @@ namespace Orchard.Packaging.Services {
|
||||
public int GetExtensionCount(PackagingSource packagingSource = null, Func<IQueryable<PublishedPackage>, IQueryable<PublishedPackage>> query = null) {
|
||||
return (packagingSource == null ? GetSources() : new[] { packagingSource })
|
||||
.Sum( source => {
|
||||
var galleryFeedContext = new GalleryFeedContext(new Uri(source.FeedUrl));
|
||||
var galleryFeedContext = new GalleryFeedContext(new Uri(source.FeedUrl)) { IgnoreMissingProperties = true };
|
||||
IQueryable<PublishedPackage> packages = galleryFeedContext.Packages;
|
||||
|
||||
if (query != null) {
|
||||
|
||||
Reference in New Issue
Block a user