Skip to content

Commit

Permalink
MDL-16441 Display language selection drop-down list at My Moodle page…
Browse files Browse the repository at this point in the history
…. Merged from 1.9
  • Loading branch information
mudrd8mz committed Sep 15, 2008
1 parent d3e99e8 commit ebebf56
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions my/pagelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function user_is_editing() {

function print_header($title) {

global $USER;
global $USER, $CFG;

$replacements = array(
'%fullname%' => get_string('mymoodle','my')
Expand All @@ -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);

}

Expand Down

0 comments on commit ebebf56

Please sign in to comment.