*) bugfix for bookmark service: get didn't work when using date=null

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2963 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
theli 2006-11-16 16:20:00 +00:00
parent 400c86f2ad
commit 9ea9a9f157

View File

@ -75,7 +75,8 @@ public class BookmarkService extends AbstractService {
/* =====================================================================
* Used XML Templates
* ===================================================================== */
private static final String TEMPLATE_BOOKMARK_LIST_XML = "xml/bookmarks/posts/get.xml";
private static final String TEMPLATE_BOOKMARK_LIST_GET_XML = "xml/bookmarks/posts/get.xml";
private static final String TEMPLATE_BOOKMARK_LIST_ALL_XML = "xml/bookmarks/posts/all.xml";
private static final String TEMPLATE_BOOKMARK_TAGS_XML = "xml/bookmarks/tags/get.xml";
/**
@ -397,7 +398,7 @@ public class BookmarkService extends AbstractService {
if (tag != null) args.put("tag",tag);
if (date != null) args.put("date",date);
byte[] result = writeTemplate(TEMPLATE_BOOKMARK_LIST_XML, args);
byte[] result = writeTemplate((date != null)?TEMPLATE_BOOKMARK_LIST_GET_XML:TEMPLATE_BOOKMARK_LIST_ALL_XML, args);
// sending back the result to the client
return this.convertContentToXML(result);