From: john Date: Tue, 6 May 2003 12:22:07 +0000 (+0000) Subject: bug fix in email function...use the right localizer stuff for X-Git-Tag: BEFORE_MERGE_1_1~108 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=b721133f7b4c615c4af6230102238b9b13882eec;p=mir.git bug fix in email function...use the right localizer stuff for wrapping content so the creationdate.formatted stuff works --- diff --git a/source/mircoders/servlet/ServletModuleOpenIndy.java b/source/mircoders/servlet/ServletModuleOpenIndy.java index 918dd39d..f7d0bf9f 100755 --- a/source/mircoders/servlet/ServletModuleOpenIndy.java +++ b/source/mircoders/servlet/ServletModuleOpenIndy.java @@ -123,7 +123,7 @@ import mircoders.storage.DatabaseTopics; * open-postings to the newswire * * @author mir-coders group - * @version $Id: ServletModuleOpenIndy.java,v 1.87 2003/05/04 23:52:14 john Exp $ + * @version $Id: ServletModuleOpenIndy.java,v 1.88 2003/05/06 12:22:07 john Exp $ * */ @@ -630,7 +630,7 @@ public class ServletModuleOpenIndy extends ServletModule StringWriter theEMailTextWriter=new StringWriter(); PrintWriter dest = new PrintWriter(theEMailTextWriter); Map articleData = new HashMap(); - articleData.put("article",mir.generator.FreemarkerGenerator.makeAdapter(contentEnt)); + articleData.put("article",MirGlobal.localizer().dataModel().adapterModel().makeEntityAdapter("content", contentEnt)); articleData.put("languagecode",mail_language); deliver(dest,req, res, articleData, null, emailAnArticleTemplate,mail_language); theEmailText=theEMailTextWriter.toString();