portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jf...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/modules/actions/portlets CustomizeSetAction.java
Date Thu, 17 Jul 2003 00:08:53 GMT
jford       2003/07/16 17:08:53

  Modified:    src/java/org/apache/jetspeed/modules/actions/portlets
                        CustomizeSetAction.java
  Log:
  Fixed initialization of the template string buffer
  
  PR: Bugzilla #19589
  Submitted by:	Georges Clerc
  
  
  Revision  Changes    Path
  1.45      +4 -2      jakarta-jetspeed/src/java/org/apache/jetspeed/modules/actions/portlets/CustomizeSetAction.java
  
  Index: CustomizeSetAction.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/modules/actions/portlets/CustomizeSetAction.java,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- CustomizeSetAction.java	9 Jul 2003 16:23:43 -0000	1.44
  +++ CustomizeSetAction.java	17 Jul 2003 00:08:53 -0000	1.45
  @@ -190,11 +190,13 @@
           if (template != null)
           {
               int idx = template.lastIndexOf(".");
  -            StringBuffer buffer = new StringBuffer(template);
  +            
               if (idx > 0)
               {
                   template = template.substring(0, idx);
               }
  +            
  +            StringBuffer buffer = new StringBuffer(template);
               buffer.append("-").append(mode).append(".vm");
               
               template = TemplateLocator.locatePortletTemplate(rundata, buffer.toString());
  
  
  

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


Mime
View raw message