portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vku...@apache.org
Subject svn commit: r731672 - /portals/jetspeed-2/portal/branches/JETSPEED-2.1.2-POSTRELEASE/components/portal/src/java/org/apache/jetspeed/decoration/AbstractDecoratorActionsFactory.java
Date Mon, 05 Jan 2009 19:58:30 GMT
Author: vkumar
Date: Mon Jan  5 11:58:29 2009
New Revision: 731672

URL: http://svn.apache.org/viewvc?rev=731672&view=rev
Log:
Fixing decorator actions issues

Modified:
    portals/jetspeed-2/portal/branches/JETSPEED-2.1.2-POSTRELEASE/components/portal/src/java/org/apache/jetspeed/decoration/AbstractDecoratorActionsFactory.java

Modified: portals/jetspeed-2/portal/branches/JETSPEED-2.1.2-POSTRELEASE/components/portal/src/java/org/apache/jetspeed/decoration/AbstractDecoratorActionsFactory.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/JETSPEED-2.1.2-POSTRELEASE/components/portal/src/java/org/apache/jetspeed/decoration/AbstractDecoratorActionsFactory.java?rev=731672&r1=731671&r2=731672&view=diff
==============================================================================
--- portals/jetspeed-2/portal/branches/JETSPEED-2.1.2-POSTRELEASE/components/portal/src/java/org/apache/jetspeed/decoration/AbstractDecoratorActionsFactory.java
(original)
+++ portals/jetspeed-2/portal/branches/JETSPEED-2.1.2-POSTRELEASE/components/portal/src/java/org/apache/jetspeed/decoration/AbstractDecoratorActionsFactory.java
Mon Jan  5 11:58:29 2009
@@ -157,14 +157,13 @@
                         template.getCustomState()));
 
         HashMap resourcesMap = (HashMap)actionResourcesMap.get();
-        ResourceBundle bundle = null;
+        ResourceBundle bundle = DecoratorAction.getResourceBundle(rc.getLocale());
         String localizedName = null;
         
         if (resourcesMap == null)
         {
             resourcesMap = new HashMap();
             actionResourcesMap.set(resourcesMap);
-            bundle = DecoratorAction.getResourceBundle(rc.getLocale());
             resourcesMap.put(DecoratorAction.RESOURCE_BUNDLE, bundle);
             localizedName = DecoratorAction.getResourceString(bundle, actionName, actionName);
             resourcesMap.put(actionName,localizedName);



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message