r930 - xwiki/trunk/src/main/java/com/xpn/xwiki/render/groovy

St??phane Lauri??re slauriere at users.forge.objectweb.org
Sun Jan 29 13:53:07 CET 2006


Author: slauriere
Date: 2006-01-29 13:53:05 +0100 (Sun, 29 Jan 2006)
New Revision: 930

Modified:
   xwiki/trunk/src/main/java/com/xpn/xwiki/render/groovy/XWikiGroovyRenderer.java
Log:
Added XWikiMessageTool to gcontext.

Modified: xwiki/trunk/src/main/java/com/xpn/xwiki/render/groovy/XWikiGroovyRenderer.java
===================================================================
--- xwiki/trunk/src/main/java/com/xpn/xwiki/render/groovy/XWikiGroovyRenderer.java	2006-01-25 08:29:24 UTC (rev 929)
+++ xwiki/trunk/src/main/java/com/xpn/xwiki/render/groovy/XWikiGroovyRenderer.java	2006-01-29 12:53:05 UTC (rev 930)
@@ -77,6 +77,11 @@
                 // Put the Grrovy Context in the context
                 // so that includes can use it..
                 context.put("gcontext", gcontext);
+                //add XWikiMessageTool to the context
+                if (context.get("msg") != null)
+                	gcontext.put("msg", context.get("msg"));
+                else
+                	context.getWiki().prepareResources(context);                
             }
             return gcontext;
         }





More information about the Xwiki-notifications mailing list