Ignore:
Timestamp:
2004-11-05T14:37:31+13:00 (19 years ago)
Author:
kjdon
Message:

modified prepare_page() to fix the bug whereby if l=en, macros which had
explicit [l=en] would not be found.

File:
1 edited

Legend:

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

    r8454 r8470  
    13311331  text_tmap::iterator params_end = configinfo.pageparams.end();
    13321332  while (params_here != params_end) {
    1333     if (args[(*params_here).first] != (*params_here).second) {
     1333    // page params are those from main.cfg (eg pageparam v 0) plus
     1334    // two defaults set in recptconf.clear() (c="" and l=en)
     1335    // This used to check if the current value of the page param
     1336    // == the default value, then don't add in it the list
     1337    // but if l=en, and there is a macro with [l=en], then it doesn't
     1338    // find it.
     1339    // so now all page params will go into the list. I assume this will
     1340    // mean more attempts to find each macro, but nothing worsee than
     1341    // that.  --kjdon
     1342    //if (args[(*params_here).first] != (*params_here).second) {
    13341343      if (!first) pageparams += ",";
    13351344      first = false;
     
    13371346      pageparams += "=";
    13381347      pageparams += args[(*params_here).first];
    1339     }
     1348      // }
    13401349   
    13411350    ++params_here;
Note: See TracChangeset for help on using the changeset viewer.