mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-19 18:27:55 +08:00
Fixing ItemInspector signature for compatibility with old versions
--HG-- branch : 1.x
This commit is contained in:
@@ -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;
|
||||
|
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user