Permalink
Browse files

MDL-16441 Display language selection drop-down list at My Moodle page

  • Loading branch information...
mudrd8mz
mudrd8mz committed Sep 15, 2008
1 parent 9b82222 commit b0f74680f78e9bb3e952c47e1f814bf054af3106
Showing with 12 additions and 2 deletions.
  1. +12 −2 my/pagelib.php
View
@@ -28,7 +28,7 @@ function user_is_editing() {
function print_header($title) {
global $USER;
global $USER, $CFG;
$replacements = array(
'%fullname%' => get_string('mymoodle','my')
@@ -46,7 +46,17 @@ function print_header($title) {
$navigation = build_navigation($navlinks);
$loggedinas = user_login_string($site);
print_header($title, $header,$navigation,'','',true, $button, $loggedinas);
if (empty($CFG->langmenu)) {
$langmenu = '';
} else {
$currlang = current_language();
$langs = get_list_of_languages();
$langlabel = get_accesshide(get_string('language'));
$langmenu = popup_form($CFG->wwwroot .'/my/index.php?lang=', $langs, 'chooselang', $currlang, '', '', '', true, 'self', $langlabel);
}
print_header($title, $header,$navigation,'','',true, $button, $loggedinas.$langmenu);
}

0 comments on commit b0f7468

Please sign in to comment.