roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agillil...@apache.org
Subject svn commit: r429501 - /incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/model/SiteModel.java
Date Mon, 07 Aug 2006 22:44:47 GMT
Author: agilliland
Date: Mon Aug  7 15:44:47 2006
New Revision: 429501

URL: http://svn.apache.org/viewvc?rev=429501&view=rev
Log:
fixing class cast exception in site model.


Modified:
    incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/model/SiteModel.java

Modified: incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/model/SiteModel.java
URL: http://svn.apache.org/viewvc/incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/model/SiteModel.java?rev=429501&r1=429500&r2=429501&view=diff
==============================================================================
--- incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/model/SiteModel.java
(original)
+++ incubator/roller/branches/roller_3.0/src/org/apache/roller/ui/rendering/model/SiteModel.java
Mon Aug  7 15:44:47 2006
@@ -65,17 +65,20 @@
         return "site";
     }
     
-    public void init(Map initData) throws RollerException {        
+    public void init(Map initData) throws RollerException {
+        
         // we expect the init data to contain a pageRequest object
-        this.weblogRequest = (WeblogPageRequest) initData.get("weblogRequest");
+        this.weblogRequest = (WeblogRequest) initData.get("weblogRequest");
         if(this.weblogRequest == null) {
             throw new RollerException("expected pageRequest from init data");
         }
+        
         // TODO 3.0: is it better to reparse URL to get these?
         if (weblogRequest instanceof WeblogPageRequest) {
             weblogPage = ((WeblogPageRequest)weblogRequest).getWeblogPage();
             pageNum = ((WeblogPageRequest)weblogRequest).getPageNum();
-        }        
+        }
+        
         // extract weblog object
         weblog = weblogRequest.getWeblog();
     }



Mime
View raw message