doc.setDefaultLanguage(context.getWiki().getLanguagePreference(context));
}
String language = context.getWiki().getLanguagePreference(context);
String languagefromrequest = context.getRequest().getParameter("language");
String languagetoedit =
<BUG>((languagefromrequest == null) || (languagefromrequest.equals(""))) ? language

: languagefromrequest;</BUG>
if ((languagetoedit == null) || (languagetoedit.equals("default"))) {
languagetoedit = "";

doc.setDefaultLanguage(context.getWiki().getLanguagePreference(context));
}
String language = context.getWiki().getLanguagePreference(context);
String languagefromrequest = context.getRequest().getParameter("language");
String languagetoedit =
((languagefromrequest == null) || (languagefromrequest.equals(""))) ? language : languagefromrequest;
if ((languagetoedit == null) || (languagetoedit.equals("default"))) {
languagetoedit = "";
