roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agillil...@apache.org
Subject svn commit: r542965 - /roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/velocity/deprecated/ContextLoader.java
Date Wed, 30 May 2007 22:58:35 GMT
Author: agilliland
Date: Wed May 30 15:58:35 2007
New Revision: 542965

URL: http://svn.apache.org/viewvc?view=rev&rev=542965
Log:
remove use of old struts1 dependency.


Modified:
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/velocity/deprecated/ContextLoader.java

Modified: roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/velocity/deprecated/ContextLoader.java
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/velocity/deprecated/ContextLoader.java?view=diff&rev=542965&r1=542964&r2=542965
==============================================================================
--- roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/velocity/deprecated/ContextLoader.java
(original)
+++ roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/velocity/deprecated/ContextLoader.java
Wed May 30 15:58:35 2007
@@ -50,7 +50,6 @@
 import org.apache.roller.weblogger.util.DateUtil;
 import org.apache.roller.weblogger.util.RegexUtil;
 import org.apache.roller.weblogger.util.URLUtilities;
-import org.apache.struts.util.RequestUtils;
 
 /**
  * Load Velocity Context with Roller objects, values, and custom plugins.
@@ -414,7 +413,7 @@
         ctx.put("uploadPath", ContextLoader.figureResourcePath());
         
         try {
-            URL absUrl = RequestUtils.absoluteURL(request, "/");
+            URL absUrl = new URL(RollerRuntimeConfig.getAbsoluteContextURL());
             ctx.put("host", absUrl.getHost());
         } catch (MalformedURLException e) {
             throw new RollerException(e);



Mime
View raw message