Changeset 1991


Ignore:
Timestamp:
2001-02-16T13:49:31+13:00 (23 years ago)
Author:
sjboddie
Message:

Fixed a bug in DocumentUseHTML

File:
1 edited

Legend:

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

    r1969 r1991  
    708708
    709709 
    710     if (formatinfo.DocumentUseHTML) {
     710    if (formatinfo.DocumentUseHTML && !args["d"].empty()) {
    711711     
    712       if (!args["d"].empty()) {
    713     if (args["f"] == "1") {
    714       textout << outconvert << disp
    715           << "<html><head></head>\n"
    716           << "<frameset rows=\"68,*\" noresize border=0>\n"
    717           << "<frame scrolling=no frameborder=0 src=\"_gwcgi_?_optsite_e=_compressedoptions_&a=p&p=nav\">\n"
    718           << "<frame name=\"documenttop\" frameborder=0 src=\"_gwcgi_?_optsite_e=_compressedoptions_&a=d&d="
    719           << args["d"] << "\">"
    720           << "<noframes>\n"
    721           << "<p>You must have a frame enabled browser to view this.</p>\n"
    722           << "</noframes>\n"
    723           << "</frameset>\n"
    724           << "</html>\n";
    725     } else {
    726       output_document (OID, args, collectproto, disp, outconvert, textout, logout);
    727     }
    728     return true;
    729       }
     712      if (args["f"] == "1") {
     713    textout << outconvert << disp
     714        << "<html><head></head>\n"
     715        << "<frameset rows=\"68,*\" noresize border=0>\n"
     716        << "<frame scrolling=no frameborder=0 src=\"_gwcgi_?_optsite_e=_compressedoptions_&a=p&p=nav\">\n"
     717        << "<frame name=\"documenttop\" frameborder=0 src=\"_gwcgi_?_optsite_e=_compressedoptions_&a=d&d="
     718        << args["d"] << "\">"
     719        << "<noframes>\n"
     720        << "<p>You must have a frame enabled browser to view this.</p>\n"
     721        << "</noframes>\n"
     722        << "</frameset>\n"
     723        << "</html>\n";
     724      } else {
     725    output_document (OID, args, collectproto, disp, outconvert, textout, logout);   
     726      }
     727      return true;
    730728    }
    731729
Note: See TracChangeset for help on using the changeset viewer.