From accc1c34d2f03f6edce6fea1ba78ce0b01ea7cfb Mon Sep 17 00:00:00 2001 From: Andre Rodrigues Date: Thu, 28 Apr 2011 13:25:03 -0700 Subject: [PATCH] #17776: Making gallery feed Context ignore unknown properties. --HG-- branch : 1.x --- .../Orchard.Packaging/Services/PackagingSourceManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Orchard.Web/Modules/Orchard.Packaging/Services/PackagingSourceManager.cs b/src/Orchard.Web/Modules/Orchard.Packaging/Services/PackagingSourceManager.cs index ffa80b183..5adc82fbb 100644 --- a/src/Orchard.Web/Modules/Orchard.Packaging/Services/PackagingSourceManager.cs +++ b/src/Orchard.Web/Modules/Orchard.Packaging/Services/PackagingSourceManager.cs @@ -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 packages = includeScreenshots ? galleryFeedContext.Packages.Expand("Screenshots") : galleryFeedContext.Packages; @@ -95,7 +95,7 @@ namespace Orchard.Packaging.Services { public int GetExtensionCount(PackagingSource packagingSource = null, Func, IQueryable> 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 packages = galleryFeedContext.Packages; if (query != null) {