You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by ag...@apache.org on 2007/05/22 20:10:33 UTC
svn commit: r540671 -
/roller/trunk/src/org/apache/roller/ui/rendering/servlets/CommentServlet.java
Author: agilliland
Date: Tue May 22 11:10:32 2007
New Revision: 540671
URL: http://svn.apache.org/viewvc?view=rev&rev=540671
Log:
remove unneeded use of struts RequestUtils.
Modified:
roller/trunk/src/org/apache/roller/ui/rendering/servlets/CommentServlet.java
Modified: roller/trunk/src/org/apache/roller/ui/rendering/servlets/CommentServlet.java
URL: http://svn.apache.org/viewvc/roller/trunk/src/org/apache/roller/ui/rendering/servlets/CommentServlet.java?view=diff&rev=540671&r1=540670&r2=540671
==============================================================================
--- roller/trunk/src/org/apache/roller/ui/rendering/servlets/CommentServlet.java (original)
+++ roller/trunk/src/org/apache/roller/ui/rendering/servlets/CommentServlet.java Tue May 22 11:10:32 2007
@@ -65,7 +65,6 @@
import org.apache.roller.util.URLUtilities;
import org.apache.roller.util.Utilities;
import org.apache.roller.util.cache.CacheManager;
-import org.apache.struts.util.RequestUtils;
/**
@@ -311,9 +310,6 @@
// Send email notifications, but only to subscribers if comment is 100% valid
boolean notifySubscribers = (validationScore == 100);
String rootURL = RollerRuntimeConfig.getAbsoluteContextURL();
- if (rootURL == null || rootURL.trim().length()==0) {
- rootURL = RequestUtils.serverURL(request) + request.getContextPath();
- }
sendEmailNotification(comment, notifySubscribers, messages, rootURL);
// only re-index/invalidate the cache if comment isn't moderated