cjdelisle (SVN) wrote:
Author: cjdelisle
Date: 2010-03-16 09:50:34 +0100 (Tue, 16 Mar 2010)
New Revision: 27643
Modified:
platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/web/UnknownAction.java
Log:
You forgot the log :)
Thanks,
Marius
Modified:
platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/web/UnknownAction.java
===================================================================
---
platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/web/UnknownAction.java 2010-03-16
08:34:35 UTC (rev 27642)
+++
platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/web/UnknownAction.java 2010-03-16
08:50:34 UTC (rev 27643)
@@ -40,6 +40,10 @@
* @see XWikiAction#render(com.xpn.xwiki.XWikiContext)
*/
public String render(XWikiContext context) throws XWikiException {
- return context.getWiki().Param("xwiki.unknownActionResponse",
"exception");
+ String defaultAction =
context.getWiki().Param("xwiki.unknownActionResponse", "exception");
+ // Set the action in the context because code which uses $xcontext.getAction()
+ // should get the desired action instead of "unknown"
+ context.setAction(defaultAction);
+ return defaultAction;
}
}
_______________________________________________
notifications mailing list
notifications(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications