bug fix in email function...use the right localizer stuff for
authorjohn <john>
Tue, 6 May 2003 12:22:07 +0000 (12:22 +0000)
committerjohn <john>
Tue, 6 May 2003 12:22:07 +0000 (12:22 +0000)
wrapping content so the creationdate.formatted stuff works

source/mircoders/servlet/ServletModuleOpenIndy.java

index 918dd39..f7d0bf9 100755 (executable)
@@ -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();