Make the "stylesheets" variable visible to the dump.ftl template, repairing a problem created by r9502.
This commit is contained in:
parent
fe044c759a
commit
eb1ff58879
1 changed files with 3 additions and 0 deletions
|
@ -600,6 +600,9 @@ public abstract class BaseDumpDirective implements TemplateDirectiveModel {
|
|||
|
||||
protected void writeDump(Map<String, Object> 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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue