velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cbris...@apache.org
Subject svn commit: r686477 - /velocity/tools/trunk/src/main/java/org/apache/velocity/tools/view/ParameterTool.java
Date Sat, 16 Aug 2008 11:19:26 GMT
Author: cbrisson
Date: Sat Aug 16 04:19:24 2008
New Revision: 686477

URL: http://svn.apache.org/viewvc?rev=686477&view=rev
Log:
make ParameterParser.getAll expand singleton values (not fully BC but really easier in templates)

Modified:
    velocity/tools/trunk/src/main/java/org/apache/velocity/tools/view/ParameterTool.java

Modified: velocity/tools/trunk/src/main/java/org/apache/velocity/tools/view/ParameterTool.java
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/src/main/java/org/apache/velocity/tools/view/ParameterTool.java?rev=686477&r1=686476&r2=686477&view=diff
==============================================================================
--- velocity/tools/trunk/src/main/java/org/apache/velocity/tools/view/ParameterTool.java (original)
+++ velocity/tools/trunk/src/main/java/org/apache/velocity/tools/view/ParameterTool.java Sat
Aug 16 04:19:24 2008
@@ -174,7 +174,7 @@
      */
     public Map getAll()
     {
-        return getSource();
+        return expandSingletonArrays(getSource());
     }
 
     /**



Mime
View raw message