Fixing ItemInspector signature for compatibility with old versions

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2011-12-01 16:05:44 -08:00
parent dde7e21a69
commit 09581ddf95
2 changed files with 4 additions and 2 deletions

View File

@@ -18,6 +18,8 @@ namespace Orchard.Core.Feeds.StandardBuilders {
private readonly RoutePart _routable;
private readonly BodyPart _body;
public ItemInspector(IContent item, ContentItemMetadata metadata) : this(item, metadata, Enumerable.Empty<IHtmlFilter>()) {}
public ItemInspector(IContent item, ContentItemMetadata metadata, IEnumerable<IHtmlFilter> htmlFilters) {
_item = item;
_metadata = metadata;

View File

@@ -30,8 +30,8 @@ namespace Orchard.Comments.Feeds {
var commentedOn = _contentManager.Get(feedItem.Item.Record.CommentedOn);
var commentedOnInspector = new ItemInspector(
commentedOn,
_contentManager.GetItemMetadata(commentedOn),
Enumerable.Empty<IHtmlFilter>());
_contentManager.GetItemMetadata(commentedOn)
);
var title = T("Comment on {0} by {1}", commentedOnInspector.Title, comment.Record.Author);