mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-21 00:00:13 +02:00
*) 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:
parent
400c86f2ad
commit
9ea9a9f157
|
@ -75,8 +75,9 @@ 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_TAGS_XML = "xml/bookmarks/tags/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";
|
||||
|
||||
/**
|
||||
* @return a handler to the YaCy Bookmark DB
|
||||
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user