implemented the main community administration menu, took some rough edges
off the menu transitions (on the Find pages)
This commit is contained in:
@@ -95,23 +95,23 @@ public class LibraryVenice
|
||||
private final int getCommunityParameter(Request req) throws ValidationException
|
||||
{
|
||||
Map pmap = req.getParameters();
|
||||
String cparam = StringUtils.stringize(pmap.get("cid"));
|
||||
String[] cparam = (String[])(pmap.get("cid"));
|
||||
if (cparam==null)
|
||||
cparam = StringUtils.stringize(pmap.get("cc"));
|
||||
cparam = (String[])(pmap.get("cc"));
|
||||
if (cparam==null)
|
||||
cparam = StringUtils.stringize(pmap.get("sig"));
|
||||
cparam = (String[])(pmap.get("sig"));
|
||||
if (cparam==null)
|
||||
return -1; // completely not-specified
|
||||
|
||||
try
|
||||
{ // get the community ID
|
||||
return Integer.parseInt(cparam.trim());
|
||||
return Integer.parseInt(cparam[0].trim());
|
||||
|
||||
} // end try
|
||||
catch (NumberFormatException e)
|
||||
{ // couldn't be parsed as an integer - damn!
|
||||
ValidationException ve = new ValidationException(LibraryVenice.class,"LibraryMessages","invalid.cid",e);
|
||||
ve.setParameter(0,cparam);
|
||||
ve.setParameter(0,cparam[0]);
|
||||
throw ve;
|
||||
|
||||
} // end catch
|
||||
|
||||
Reference in New Issue
Block a user