OFBIZ-6277: Merge changes from r1675521 to Trunk:
Log: ============================================================ new Configuration() is deprecated; instead, the desired freemarker version should be passed in. To make it easier to control the version centrally, add a helper method on FreeMarkerWorker that wraps the instantiation of the Configuration object. ============================================================ git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1731380 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -88,8 +88,12 @@ public class FreeMarkerWorker {
|
||||
return defaultOfbizWrapper;
|
||||
}
|
||||
|
||||
public static Configuration newConfiguration() {
|
||||
return new Configuration(version);
|
||||
}
|
||||
|
||||
public static Configuration makeConfiguration(BeansWrapper wrapper) {
|
||||
Configuration newConfig = new Configuration(version);
|
||||
Configuration newConfig = newConfiguration();
|
||||
|
||||
newConfig.setObjectWrapper(wrapper);
|
||||
TemplateHashModel staticModels = wrapper.getStaticModels();
|
||||
|
||||
Reference in New Issue
Block a user