From eb1ff588794f50b0294af5e2c135c57ca3920d19 Mon Sep 17 00:00:00 2001 From: j2blake Date: Tue, 28 Feb 2012 22:26:40 +0000 Subject: [PATCH] Make the "stylesheets" variable visible to the dump.ftl template, repairing a problem created by r9502. --- webapp/src/freemarker/ext/dump/BaseDumpDirective.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webapp/src/freemarker/ext/dump/BaseDumpDirective.java b/webapp/src/freemarker/ext/dump/BaseDumpDirective.java index 5587468e9..9749a5ade 100644 --- a/webapp/src/freemarker/ext/dump/BaseDumpDirective.java +++ b/webapp/src/freemarker/ext/dump/BaseDumpDirective.java @@ -600,6 +600,9 @@ public abstract class BaseDumpDirective implements TemplateDirectiveModel { protected void writeDump(Map map, Environment env, String templateName) throws TemplateException, IOException { + // Make the stylesheets list visible to dump.ftl + map.put("stylesheets", env.getVariable("stylesheets")); + Template template = env.getConfiguration().getTemplate(templateName); StringWriter sw = new StringWriter(); template.process(map, sw);