roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r572939 - /roller/branches/roller_4.1_dev/apps/weblogger/web/roller-ui/login-redirect.jsp
Date Wed, 05 Sep 2007 12:23:48 GMT
Author: snoopdave
Date: Wed Sep  5 05:23:47 2007
New Revision: 572939

URL: http://svn.apache.org/viewvc?rev=572939&view=rev
Log:
bug fix related to externalizing user management
http://opensource.atlassian.com/projects/roller/browse/ROL-1534

Modified:
    roller/branches/roller_4.1_dev/apps/weblogger/web/roller-ui/login-redirect.jsp

Modified: roller/branches/roller_4.1_dev/apps/weblogger/web/roller-ui/login-redirect.jsp
URL: http://svn.apache.org/viewvc/roller/branches/roller_4.1_dev/apps/weblogger/web/roller-ui/login-redirect.jsp?rev=572939&r1=572938&r2=572939&view=diff
==============================================================================
--- roller/branches/roller_4.1_dev/apps/weblogger/web/roller-ui/login-redirect.jsp (original)
+++ roller/branches/roller_4.1_dev/apps/weblogger/web/roller-ui/login-redirect.jsp Wed Sep
 5 05:23:47 2007
@@ -22,11 +22,11 @@
 <%@ page import="java.util.List" %>
 <%
 User user = RollerSession.getRollerSession(request).getAuthenticatedUser();
-List websites = WebloggerFactory.getWeblogger().getUserManager().getWebsites(user, true);
+List weblogs = WebloggerFactory.getWeblogger().getUserManager().getWeblogs(user, true);
 
-if (websites.size() == 1) {
-    Weblog website = (Weblog) websites.get(0);
-    response.sendRedirect(request.getContextPath()+"/roller-ui/authoring/entryAdd.rol?weblog="+website.getHandle());
+if (weblogs.size() == 1) {
+    Weblog weblog = (Weblog) weblogs.get(0);
+    response.sendRedirect(request.getContextPath()+"/roller-ui/authoring/entryAdd.rol?weblog="+weblog.getHandle());
 } else {
     response.sendRedirect(request.getContextPath()+"/roller-ui/menu.rol");
 }



Mime
View raw message