velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nbu...@apache.org
Subject svn commit: r1023103 - /velocity/tools/trunk/velocity-tools-view/src/main/java/org/apache/velocity/tools/view/ViewToolManager.java
Date Fri, 15 Oct 2010 20:43:38 GMT
Author: nbubna
Date: Fri Oct 15 20:43:38 2010
New Revision: 1023103

URL: http://svn.apache.org/viewvc?rev=1023103&view=rev
Log:
VELTOOLS-130 fix autoConfig=true for ViewToolManager ctor

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

Modified: velocity/tools/trunk/velocity-tools-view/src/main/java/org/apache/velocity/tools/view/ViewToolManager.java
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/velocity-tools-view/src/main/java/org/apache/velocity/tools/view/ViewToolManager.java?rev=1023103&r1=1023102&r2=1023103&view=diff
==============================================================================
--- velocity/tools/trunk/velocity-tools-view/src/main/java/org/apache/velocity/tools/view/ViewToolManager.java
(original)
+++ velocity/tools/trunk/velocity-tools-view/src/main/java/org/apache/velocity/tools/view/ViewToolManager.java
Fri Oct 15 20:43:38 2010
@@ -80,12 +80,16 @@ public class ViewToolManager extends Too
     public ViewToolManager(ServletContext app,
                            boolean autoConfig, boolean includeDefaults)
     {
-        super(autoConfig, includeDefaults);
+        super(false, includeDefaults);
 
         if (app == null)
         {
             throw new NullPointerException("ServletContext is required");
         }
+        if (autoConfig)
+        {
+            autoConfigure(includeDefaults);
+        }
         this.servletContext = app;
     }
 



Mime
View raw message