Changeset 9676


Ignore:
Timestamp:
2005-04-14T12:21:44+12:00 (19 years ago)
Author:
jrm21
Message:

stll set _encodingoption_ if there is only 1 encoding specified in the
main.cfg file, otherwise we see an ugly unexpanded macro

File:
1 edited

Legend:

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

    r9633 r9676  
    699699    encodingoption += "</select>\n";
    700700    disp.setmacro ("encodingoption", args["p"], encodingoption);
    701   }
     701  } else if (configinfo.encodings.size() == 1) {
     702    text_t encodingoption;
     703    text_tmap::const_iterator thisenc = configinfo.encodings.begin();
     704    encodingoption = (*thisenc).first;
     705    disp.setmacro ("encodingoption", args["p"], encodingoption);
     706  } else { // size == 0. shouldn't really happen, but allow it
     707    disp.setmacro ("encodingoption", args["p"], "None");
     708  }
     709
    702710}
    703711
Note: See TracChangeset for help on using the changeset viewer.