From b721133f7b4c615c4af6230102238b9b13882eec Mon Sep 17 00:00:00 2001 From: john Date: Tue, 6 May 2003 12:22:07 +0000 Subject: [PATCH] bug fix in email function...use the right localizer stuff for wrapping content so the creationdate.formatted stuff works --- source/mircoders/servlet/ServletModuleOpenIndy.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.11.0