From dbdf3e16bf3a46542e47cae42d161b5e7ec46e4e Mon Sep 17 00:00:00 2001 From: Sebastien Ros Date: Wed, 25 Apr 2012 09:58:28 -0700 Subject: [PATCH] Fixing comments count issue introduced in acd1583cde1d --HG-- branch : 1.x --- .../Orchard.Comments/Drivers/CommentsContainerPartDriver.cs | 4 ++-- .../Modules/Orchard.Comments/Drivers/CommentsPartDriver.cs | 4 ++-- .../Views/Parts.Comments.Count.SummaryAdmin.cshtml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Orchard.Web/Modules/Orchard.Comments/Drivers/CommentsContainerPartDriver.cs b/src/Orchard.Web/Modules/Orchard.Comments/Drivers/CommentsContainerPartDriver.cs index d17e44ce3..b87fb094c 100644 --- a/src/Orchard.Web/Modules/Orchard.Comments/Drivers/CommentsContainerPartDriver.cs +++ b/src/Orchard.Web/Modules/Orchard.Comments/Drivers/CommentsContainerPartDriver.cs @@ -22,9 +22,9 @@ namespace Orchard.Comments.Drivers { return Combined( ContentShape("Parts_Comments_Count", - () => shapeHelper.Parts_Comments_Count(CommentCount: approvedCount, PendingCount: pendingCount)), + () => shapeHelper.Parts_Comments_Count(CommentCount: approvedCount(), PendingCount: pendingCount())), ContentShape("Parts_Comments_Count_SummaryAdmin", - () => shapeHelper.Parts_Comments_Count_SummaryAdmin(CommentCount: approvedCount, PendingCount: pendingCount)) + () => shapeHelper.Parts_Comments_Count_SummaryAdmin(CommentCount: approvedCount(), PendingCount: pendingCount())) ); } } diff --git a/src/Orchard.Web/Modules/Orchard.Comments/Drivers/CommentsPartDriver.cs b/src/Orchard.Web/Modules/Orchard.Comments/Drivers/CommentsPartDriver.cs index 48bd068de..500440410 100644 --- a/src/Orchard.Web/Modules/Orchard.Comments/Drivers/CommentsPartDriver.cs +++ b/src/Orchard.Web/Modules/Orchard.Comments/Drivers/CommentsPartDriver.cs @@ -26,9 +26,9 @@ namespace Orchard.Comments.Drivers { ContentShape("Parts_Comments", () => shapeHelper.Parts_Comments()), ContentShape("Parts_Comments_Count", - () => shapeHelper.Parts_Comments_Count(CommentCount: approvedCount, PendingCount: pendingCount)), + () => shapeHelper.Parts_Comments_Count(CommentCount: approvedCount(), PendingCount: pendingCount())), ContentShape("Parts_Comments_Count_SummaryAdmin", - () => shapeHelper.Parts_Comments_Count_SummaryAdmin(CommentCount: approvedCount, PendingCount: pendingCount)) + () => shapeHelper.Parts_Comments_Count_SummaryAdmin(CommentCount: approvedCount(), PendingCount: pendingCount())) ); } diff --git a/src/Orchard.Web/Modules/Orchard.Comments/Views/Parts.Comments.Count.SummaryAdmin.cshtml b/src/Orchard.Web/Modules/Orchard.Comments/Views/Parts.Comments.Count.SummaryAdmin.cshtml index 52725fc68..b544f7fdf 100644 --- a/src/Orchard.Web/Modules/Orchard.Comments/Views/Parts.Comments.Count.SummaryAdmin.cshtml +++ b/src/Orchard.Web/Modules/Orchard.Comments/Views/Parts.Comments.Count.SummaryAdmin.cshtml @@ -1,6 +1,6 @@  \ No newline at end of file