roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r372882 - /incubator/roller/trunk/src/org/roller/presentation/velocity/FlavorServlet.java
Date Fri, 27 Jan 2006 15:47:52 GMT
Author: snoopdave
Date: Fri Jan 27 07:47:45 2006
New Revision: 372882

URL: http://svn.apache.org/viewcvs?rev=372882&view=rev
Log:
Fixes ROL-1007, <lastBuild> date missing from main RSS feed

Modified:
    incubator/roller/trunk/src/org/roller/presentation/velocity/FlavorServlet.java

Modified: incubator/roller/trunk/src/org/roller/presentation/velocity/FlavorServlet.java
URL: http://svn.apache.org/viewcvs/incubator/roller/trunk/src/org/roller/presentation/velocity/FlavorServlet.java?rev=372882&r1=372881&r2=372882&view=diff
==============================================================================
--- incubator/roller/trunk/src/org/roller/presentation/velocity/FlavorServlet.java (original)
+++ incubator/roller/trunk/src/org/roller/presentation/velocity/FlavorServlet.java Fri Jan
27 07:47:45 2006
@@ -89,19 +89,10 @@
         try {
             // get update time before loading context
             // TODO: this should really be handled elsewhere
-            if(rreq.getWebsite() != null) {
-                String catname =
-                        request.getParameter(RollerRequest.WEBLOGCATEGORYNAME_KEY);
-                
-                Roller roller = RollerFactory.getRoller();
-                UserManager umgr = roller.getUserManager();
-                WeblogManager wmgr = roller.getWeblogManager();
-                
-                Date updateTime = wmgr.getWeblogLastPublishTime(
-                        umgr.getWebsiteByHandle(rreq.getWebsite().getHandle()), catname);
-                
-                request.setAttribute("updateTime", updateTime);
-            }
+            WeblogManager wmgr = RollerFactory.getRoller().getWeblogManager();
+            String catname = request.getParameter(RollerRequest.WEBLOGCATEGORYNAME_KEY);
+            Date updateTime = wmgr.getWeblogLastPublishTime(rreq.getWebsite(), catname);
+            request.setAttribute("updateTime", updateTime);
             
             ContextLoader.setupContext(ctx, rreq, response);
             



Mime
View raw message