[jboss-svn-commits] JBL Code SVN: r11858 - labs/jbossforums/trunk/forums/src/main/org/jboss/portlet/forums/ui.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Tue May 15 12:03:49 EDT 2007
Author: unibrew
Date: 2007-05-15 12:03:49 -0400 (Tue, 15 May 2007)
New Revision: 11858
Modified:
labs/jbossforums/trunk/forums/src/main/org/jboss/portlet/forums/ui/PortalUtil.java
Log:
[JBFORUMS-219] I repaired compatibility with JVM 1.4
Modified: labs/jbossforums/trunk/forums/src/main/org/jboss/portlet/forums/ui/PortalUtil.java
===================================================================
--- labs/jbossforums/trunk/forums/src/main/org/jboss/portlet/forums/ui/PortalUtil.java 2007-05-15 16:02:44 UTC (rev 11857)
+++ labs/jbossforums/trunk/forums/src/main/org/jboss/portlet/forums/ui/PortalUtil.java 2007-05-15 16:03:49 UTC (rev 11858)
@@ -454,7 +454,7 @@
RenderResponse renderResponse = (RenderResponse) response;
PortletURL portletURL = renderResponse.createActionURL();
url = portletURL.toString();
- if (url.contains("/auth")) {
+ if (url.indexOf("/auth")!=-1) {
url = url.replaceFirst("/auth","");
}
url += "&"+Constants.p_viewId+"=t&"+Constants.p_postId+"="+postId+"#"+postId;
@@ -500,7 +500,7 @@
// Creating permament link to post
PortletURL portletURL = ((RenderResponse)responseObj).createActionURL();
postUrl = portletURL.toString();
- if (postUrl.contains("/auth")) {
+ if (postUrl.indexOf("/auth")!=-1) {
postUrl = postUrl.replaceFirst("/auth","");
}
postUrl += "&"+Constants.p_viewId+"=t&"+Constants.p_postId+"="+watchedPostId+"#"+watchedPostId;
More information about the jboss-svn-commits
mailing list