* ServletModuleContent -
* deliver html for the article admin form.
*
- * @version $Revision: 1.19 $
+ * @version $Revision: 1.20 $
* @author $Author: mh $
*
* $Log: ServletModuleContent.java,v $
+ * Revision 1.20 2002/08/25 19:00:11 mh
+ * merge of localization branch into HEAD. mh and zap
+ *
* Revision 1.19 2002/07/20 22:24:25 mh
* made the add() method use _showObject. Fixes a bug that cause the popUps not to show up when adding an article in the admin
*
withValues.put("is_published","0");
if (!withValues.containsKey("is_html"))
withValues.put("is_html","0");
- if (withValues.get("creator").toString().equals(""))
- withValues.put("creator","Anonym");
+
+// ML: this is not multi-language friendly and this can be done in a template
+// if (withValues.get("creator").toString().equals(""))
+// withValues.put("creator","Anonym");
+
+
String id = mainModule.add(withValues);
DatabaseContentToTopics.getInstance().setTopics(id,req.getParameterValues("to_topic"));
//theLog.printDebugInfo(":: content :: inserted");
withValues.put("is_published","0");
if (!withValues.containsKey("is_html"))
withValues.put("is_html","0");
- if (withValues.get("creator").toString().equals(""))
- withValues.put("creator","Anonym");
+
+// ML: this is not multi-language friendly and this can be done in a template
+// if (withValues.get("creator").toString().equals(""))
+// withValues.put("creator","Anonym");
+
//theLog.printDebugInfo("updating. ");
String id = mainModule.set(withValues);
DatabaseContentToTopics.getInstance().setTopics(req.getParameter("id"),topic_id);