LANGUAGE MENU NOT WORKING ON HOMEPAGE
Hi Folks,
If anyone is having a problem with the language menu on their homepage of their moodle site there is a simple fix. You should edit a line in your index.php file to the code I have submitted below.
This may be a short-cut but it works a treat for us
Regards
David Keenan
Instead of:
if (empty($CFG->langmenu)) {
$langmenu = "";
} else {
$currlang = current_language();
$langs = get_list_of_languages();
$langmenu = popup_form ("$CFG->wwwroot/?lang=", $langs, "chooselang", $currlang, "", "", "", true);
}
It should be:
if (empty($CFG->langmenu)) {
$langmenu = "";
} else {
$currlang = current_language();
$langs = get_list_of_languages();
$langmenu = popup_form ("$CFG->wwwroot/index.php?lang=", $langs, "chooselang", $currlang, "", "", "", true);
}