From df1cfaba281f2bc08f425c376fa1a8d6d9a96a4f Mon Sep 17 00:00:00 2001 From: Shannon Deminick Date: Tue, 29 Jan 2013 07:50:55 +0600 Subject: [PATCH] Applies patch for #U4-1536 --- src/Umbraco.Web/Mvc/RenderMvcController.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Umbraco.Web/Mvc/RenderMvcController.cs b/src/Umbraco.Web/Mvc/RenderMvcController.cs index ac65d28d3d..62ecb2ded3 100644 --- a/src/Umbraco.Web/Mvc/RenderMvcController.cs +++ b/src/Umbraco.Web/Mvc/RenderMvcController.cs @@ -60,6 +60,14 @@ namespace Umbraco.Web.Mvc get { return ApplicationContext.DatabaseContext; } } + /// + /// Returns the Current published content item for rendering the content + /// + protected IPublishedContent CurrentPage + { + get { return PublishedContentRequest.PublishedContent; } + } + //TODO: make this protected once we make PublishedContentRequest not internal after we figure out what it should actually contain /// /// Returns the current PublishedContentRequest