mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#5216: Added call to *InitHelpers*.
This will cause various helpers to be initialized, such as the *Html* property.
This commit is contained in:
@@ -23,6 +23,7 @@ namespace Orchard.Templates.Compilation.Razor {
|
|||||||
public abstract class RazorTemplateBase<T> : Mvc.ViewEngines.Razor.WebViewPage<T>, IRazorTemplateBase<T> {
|
public abstract class RazorTemplateBase<T> : Mvc.ViewEngines.Razor.WebViewPage<T>, IRazorTemplateBase<T> {
|
||||||
public WebPageContext WebPageContext { get; set; }
|
public WebPageContext WebPageContext { get; set; }
|
||||||
public virtual void Render(TextWriter writer) {
|
public virtual void Render(TextWriter writer) {
|
||||||
|
InitHelpers();
|
||||||
PushContext(WebPageContext, writer);
|
PushContext(WebPageContext, writer);
|
||||||
OutputStack.Push(writer);
|
OutputStack.Push(writer);
|
||||||
Execute();
|
Execute();
|
||||||
|
Reference in New Issue
Block a user