roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r514150 - in /incubator/roller/trunk/src/org/apache/roller/ui: authoring/struts/actions/WeblogEntryPageModel.java rendering/servlets/CommentServlet.java
Date Sat, 03 Mar 2007 13:01:25 GMT
Author: snoopdave
Date: Sat Mar  3 05:01:24 2007
New Revision: 514150

URL: http://svn.apache.org/viewvc?view=rev&rev=514150
Log:
Use entry.getPermalink() instead of forming URL

Modified:
    incubator/roller/trunk/src/org/apache/roller/ui/authoring/struts/actions/WeblogEntryPageModel.java
    incubator/roller/trunk/src/org/apache/roller/ui/rendering/servlets/CommentServlet.java

Modified: incubator/roller/trunk/src/org/apache/roller/ui/authoring/struts/actions/WeblogEntryPageModel.java
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/src/org/apache/roller/ui/authoring/struts/actions/WeblogEntryPageModel.java?view=diff&rev=514150&r1=514149&r2=514150
==============================================================================
--- incubator/roller/trunk/src/org/apache/roller/ui/authoring/struts/actions/WeblogEntryPageModel.java
(original)
+++ incubator/roller/trunk/src/org/apache/roller/ui/authoring/struts/actions/WeblogEntryPageModel.java
Sat Mar  3 05:01:24 2007
@@ -323,8 +323,7 @@
     
     public String getPermaLink() throws RollerException
     {
-        String context = RollerRuntimeConfig.getAbsoluteContextURL();
-        return context + getWeblogEntry().getPermaLink();
+        return getWeblogEntry().getPermalink();
     }
     
     public static String makeSelect(String word, List words)

Modified: incubator/roller/trunk/src/org/apache/roller/ui/rendering/servlets/CommentServlet.java
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/src/org/apache/roller/ui/rendering/servlets/CommentServlet.java?view=diff&rev=514150&r1=514149&r2=514150
==============================================================================
--- incubator/roller/trunk/src/org/apache/roller/ui/rendering/servlets/CommentServlet.java
(original)
+++ incubator/roller/trunk/src/org/apache/roller/ui/rendering/servlets/CommentServlet.java
Sat Mar  3 05:01:24 2007
@@ -626,8 +626,8 @@
             msg.append("\n\n");
             
             // Build link back to comment
-            StringBuffer commentURL = new StringBuffer(rootURL);
-            commentURL.append(entry.getPermaLink());
+            StringBuffer commentURL = new StringBuffer();
+            commentURL.append(entry.getPermalink());
             commentURL.append("#comments");
             msg.append(commentURL.toString());
             



Mime
View raw message