Jeremi,
We need a JIRA issue for this.
Thanks
-Vincent
On Feb 14, 2007, at 1:00 PM, Jeremi Joslin wrote:
Author: jeremi
Date: 2007-02-14 13:00:17 +0100 (Wed, 14 Feb 2007)
New Revision: 2122
Modified:
xwiki/trunk/core/src/main/java/com/xpn/xwiki/doc/XWikiDocument.java
Log:
add getExternalAttachmentURL
Modified: xwiki/trunk/core/src/main/java/com/xpn/xwiki/doc/
XWikiDocument.java
===================================================================
--- xwiki/trunk/core/src/main/java/com/xpn/xwiki/doc/
XWikiDocument.java 2007-02-14 11:59:02 UTC (rev 2121)
+++ xwiki/trunk/core/src/main/java/com/xpn/xwiki/doc/
XWikiDocument.java 2007-02-14 12:00:17 UTC (rev 2122)
@@ -651,6 +651,10 @@
return context.getURLFactory().getURL(url, context);
}
+ public String getExternalAttachmentURL(String filename, String
action, XWikiContext context) {
+ URL url = context.getURLFactory().createAttachmentURL
(filename, getSpace(), getName(), action, null, getDatabase(),
context);
+ return url.toString();
+ }
public String getAttachmentURL(String filename, String action,
String querystring,
XWikiContext context)
{
@@ -1026,8 +1030,7 @@
public void setObject(String classname, int nb, BaseObject
object)
{
- Vector objects = null;
- objects = getObjects(classname);
+ Vector objects = getObjects(classname);
if (objects == null) {
objects = new Vector();
setObjects(classname, objects);
___________________________________________________________________________
Yahoo! Mail r�invente le mail ! D�couvrez le nouveau Yahoo! Mail et son interface
r�volutionnaire.
http://fr.mail.yahoo.com