Update of
/var/cvs/contributions/CMSContainer_Portlets/portlets-login/src/java/com/finalist/cmsc/portlets
In directory
james.mmbase.org:/tmp/cvs-serv3651/portlets-login/src/java/com/finalist/cmsc/portlets
Modified Files:
Tag: b1_4
LoginPortlet.java
Log Message:
make backwards compatible
See also:
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Portlets/portlets-login/src/java/com/finalist/cmsc/portlets
Index: LoginPortlet.java
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer_Portlets/portlets-login/src/java/com/finalist/cmsc/portlets/LoginPortlet.java,v
retrieving revision 1.5.2.3
retrieving revision 1.5.2.4
diff -u -b -r1.5.2.3 -r1.5.2.4
--- LoginPortlet.java 17 Mar 2008 10:50:24 -0000 1.5.2.3
+++ LoginPortlet.java 17 Mar 2008 10:52:35 -0000 1.5.2.4
@@ -73,6 +73,7 @@
PortletPreferences preferences = request.getPreferences();
String template =
preferences.getValue(PortalConstants.CMSC_PORTLET_VIEW_TEMPLATE, null);
+ if (template==null) template = "login/login.jsp";
String error = request.getParameter("errormessage");
if (!StringUtils.isBlank(error)) {
@@ -82,7 +83,7 @@
if (Community.isAuthenticated()) {
template = "login/logout.jsp";
} else {
- // take template frompreferences
+ // take template from preferences
// template = "login/login.jsp";
String action = request.getParameter("action");
if (!StringUtils.isBlank(action) &&
"send_password".equals(action)) {
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs