Minor stylistic tweak to code checking for template type

This commit is contained in:
rjy7 2011-02-10 15:24:24 +00:00
parent 17fcba922c
commit b1cdf1a1a8

View file

@ -58,7 +58,7 @@ public class TemplateProcessingHelper {
// Define a setup template to be included by every page template
String templateType = (String) map.get("templateType");
if (templateType != null && templateType.equals(FreemarkerHttpServlet.PAGE_TEMPLATE_TYPE)) {
if (FreemarkerHttpServlet.PAGE_TEMPLATE_TYPE.equals(templateType)) {
env.include(getTemplate("pageSetup.ftl"));
}