|
From: Alexander G. <gaf...@us...> - 2006-02-02 17:18:08
|
Update of /cvsroot/cobricks/cobricks2/src/org/cobricks/portal In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2300/src/org/cobricks/portal Modified Files: PortalServlet.java Log Message: Index: PortalServlet.java =================================================================== RCS file: /cvsroot/cobricks/cobricks2/src/org/cobricks/portal/PortalServlet.java,v retrieving revision 1.44 retrieving revision 1.45 diff -u -d -r1.44 -r1.45 --- PortalServlet.java 2 Feb 2006 11:39:26 -0000 1.44 +++ PortalServlet.java 2 Feb 2006 17:18:00 -0000 1.45 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003-2006 Cobricks Group. All rights reserved. + * Copyright (c) 2003-2005 Cobricks Group. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted under the terms of the Cobricks Software @@ -329,14 +329,12 @@ attrs.put("fullcontext", fullcontext); } - //If the page should be versiond - String createwikipage = prequest.getRequestParameter("createwikipage"); - createwikipage = (createwikipage == null) ? "" : createwikipage; - if (createwikipage.equals("true")) { - attrs.put("itemclass", "wikipage"); - } else { - attrs.put("itemclass", "portalpagehtml"); + //Set the itemclass + String itemclass = prequest.getRequestParameter("itemclass"); + if(itemclass == null) { + itemclass = "portalpagehtml"; } + attrs.put("itemclass", itemclass); try { int itemid = |