roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agillil...@apache.org
Subject svn commit: r355611 - /incubator/roller/trunk/contrib/plugins/src/org/roller/presentation/velocity/plugins/readmore/ReadMorePlugin.java
Date Fri, 09 Dec 2005 21:52:53 GMT
Author: agilliland
Date: Fri Dec  9 13:52:48 2005
New Revision: 355611

URL: http://svn.apache.org/viewcvs?rev=355611&view=rev
Log:
make readmore plugin link to the proper permalink url rather than an old comments url.


Modified:
    incubator/roller/trunk/contrib/plugins/src/org/roller/presentation/velocity/plugins/readmore/ReadMorePlugin.java

Modified: incubator/roller/trunk/contrib/plugins/src/org/roller/presentation/velocity/plugins/readmore/ReadMorePlugin.java
URL: http://svn.apache.org/viewcvs/incubator/roller/trunk/contrib/plugins/src/org/roller/presentation/velocity/plugins/readmore/ReadMorePlugin.java?rev=355611&r1=355610&r2=355611&view=diff
==============================================================================
--- incubator/roller/trunk/contrib/plugins/src/org/roller/presentation/velocity/plugins/readmore/ReadMorePlugin.java
(original)
+++ incubator/roller/trunk/contrib/plugins/src/org/roller/presentation/velocity/plugins/readmore/ReadMorePlugin.java
Fri Dec  9 13:52:48 2005
@@ -99,10 +99,7 @@
         if (result.length() < entry.getText().length())
         {            
             String link = "<div class=\"readMore\"><a href=\"" + 
-                baseURL + "comments/" + 
-                entry.getWebsite().getHandle() + 
-                "/" + pageLink + "/" + Utilities.encode(entry.getAnchor()) +
-                "\">Read More</a></div>";
+                baseURL + entry.getPermaLink() + "\">Read More</a></div>";
             
             result += link;
         }
@@ -112,4 +109,4 @@
 
     public String getName() { return name; }
     public String getDescription() { return StringEscapeUtils.escapeJavaScript(description);
}
-}
\ No newline at end of file
+}



Mime
View raw message