Changeset 3128


Ignore:
Timestamp:
2002-05-22T14:32:47+12:00 (22 years ago)
Author:
sjboddie
Message:

Added a hack to reset language to English if trying to view the home page
in a language other than English or French

File:
1 edited

Legend:

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

    r3047 r3128  
    9393  }
    9494
     95  // the following hack resets the language argument to English if
     96  // attempting to display the homepage in a language other than
     97  // English or French - we do this because English and French are the
     98  // only languages currently supported by the home page
     99  if (args["p"] == "home" && args["l"] != "en" && args["l"] != "fr") args["l"] = "en";
     100
    95101  return true;
    96102}
Note: See TracChangeset for help on using the changeset viewer.