roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agillil...@apache.org
Subject svn commit: r424462 - /incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/servlets/PreviewServlet.java
Date Fri, 21 Jul 2006 21:49:00 GMT
Author: agilliland
Date: Fri Jul 21 14:49:00 2006
New Revision: 424462

URL: http://svn.apache.org/viewvc?rev=424462&view=rev
Log:
fixing bug with previewing


Modified:
    incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/servlets/PreviewServlet.java

Modified: incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/servlets/PreviewServlet.java
URL: http://svn.apache.org/viewvc/incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/servlets/PreviewServlet.java?rev=424462&r1=424461&r2=424462&view=diff
==============================================================================
--- incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/servlets/PreviewServlet.java
(original)
+++ incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/servlets/PreviewServlet.java
Fri Jul 21 14:49:00 2006
@@ -109,6 +109,11 @@
             tmpWebsite.setEditorTheme(Theme.CUSTOM);
         }
         
+        // we've got to set the weblog in our previewRequest because that's
+        // the object that gets referenced during rendering operations
+        previewRequest.setWeblog(tmpWebsite);
+        
+        
         Template page = null;
         try {
             // we just want to show the default view



Mime
View raw message