#18336: Fixing stylesheets rendering

Work Item: 18336

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2012-01-12 10:03:03 -08:00
parent 7a3a20889a
commit 807fdcf566

View File

@@ -313,8 +313,9 @@ namespace Orchard.Core.Shapes {
}
[Shape]
public void Style(TextWriter Output, ResourceDefinition Resource, string Url, string Condition, Dictionary<string, string> TagAttributes) {
ResourceManager.WriteResource(Output, Resource, Url, Condition, TagAttributes);
public void Style(dynamic Display, HtmlHelper Html, TextWriter Output, ResourceDefinition Resource, string Url, string Condition, Dictionary<string, string> TagAttributes) {
// do not write to Output directly as Styles are rendered in Zones
ResourceManager.WriteResource(Html.ViewContext.Writer, Resource, Url, Condition, TagAttributes);
}
[Shape]