Ignore:
Timestamp:
2003-09-17T16:00:02+12:00 (21 years ago)
Author:
mdewsnip
Message:

Added check for invalid collection names for "about" pages. This is to avoid the otherwise-ugly "about" page that results when the collection doesn't exist. Will probably add the same check to other pages in the "page" action.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/pageaction.cpp

    r5225 r5509  
    749749    disp.setmacro("numbytes", "Global", numbytes);
    750750  }
    751  
     751
    752752  //setting _queryformcontent_ so that the query interface is consistent.
    753753  //also adding usability button if necessary
    754   if(arg_p == "about"){
    755     if (cinfo != NULL) {
     754  if (arg_p == "about") {
     755    if (cinfo == NULL) {
     756      disp.setmacro("content", arg_p, "<p>_textbadcollection_<p>");
     757      return;
     758    }
     759    else {
    756760      text_tmap::iterator check = cinfo->format.find("QueryInterface");
    757761      if(check != cinfo->format.end()){
Note: See TracChangeset for help on using the changeset viewer.