Hi Jeremi,
On Feb 14, 2007, at 1:05 PM, Jeremi Joslin wrote:
Author: jeremi
Date: 2007-02-14 13:05:42 +0100 (Wed, 14 Feb 2007)
New Revision: 2124
Modified:
xwiki/trunk/core/src/main/java/com/xpn/xwiki/XWiki.java
Log:
add the XWikiContext.MODE_GWT_DEBUG
Is there a JIRA issue associated with this change? Is it for 1.1, for
1.0, for beta 4, 5?
Also the commit doesn't correspond to the log message... Is that a
mistake?
Thanks
-Vincent
Modified: xwiki/trunk/core/src/main/java/com/xpn/xwiki/XWiki.java
===================================================================
--- xwiki/trunk/core/src/main/java/com/xpn/xwiki/XWiki.java
2007-02-14 12:03:27 UTC (rev 2123)
+++ xwiki/trunk/core/src/main/java/com/xpn/xwiki/XWiki.java
2007-02-14 12:05:42 UTC (rev 2124)
@@ -268,7 +268,7 @@
} else {
xwikicfgis = econtext.getResourceAsStream
(xwikicfg);
if (xwikicfgis == null) {
- if (context.getMode() ==
XWikiContext.MODE_GWT)
+ if (context.getMode() ==
XWikiContext.MODE_GWT || context.getMode()
==XWikiContext.MODE_GWT_DEBUG)
xwikicfgis =
XWiki.class.getClassLoader
().getResourceAsStream(
"xwiki-gwt.cfg");
@@ -5017,4 +5017,10 @@
{
return ("1".equals(context.getWiki().Param
("xwiki.store.versioning", "1")));
}
+
+ public String getExternalAttachmentURL(String fullName, String
filename, XWikiContext context) {
+ XWikiDocument doc = new XWikiDocument();
+ doc.setFullName(fullName, context);
+ return doc.getExternalAttachmentURL(filename, "download",
context);
+ }
}
___________________________________________________________________________
Yahoo! Mail r�invente le mail ! D�couvrez le nouveau Yahoo! Mail et son interface
r�volutionnaire.
http://fr.mail.yahoo.com