From 2af1c9dec5f5b3e3e9b642c7bb5bc9359a33180c Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Mon, 10 Aug 2009 03:39:32 +0000 Subject: [PATCH] MDL-19800 Converted calls to popup_form() --- login/index.php | 6 ++++-- login/signup.php | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/login/index.php b/login/index.php index 65565b4d12f..ca9e834ab3f 100644 --- a/login/index.php +++ b/login/index.php @@ -46,8 +46,10 @@ } else { $currlang = current_language(); $langs = get_list_of_languages(); - $langlabel = get_accesshide(get_string('language')); - $langmenu = popup_form ("$CFG->httpswwwroot/login/index.php?lang=", $langs, "chooselang", $currlang, "", "", "", true, 'self', $langlabel); + $select = moodle_select::make_popup_form("$CFG->httpswwwroot/login/index.php", 'lang', $langs, 'chooselang', $currlang); + $select->nothinglabel = false; + $select->set_label(get_accesshide(get_string('language'))); + $langmenu = $OUTPUT->select($select); } $loginsite = get_string("loginsite"); diff --git a/login/signup.php b/login/signup.php index 4285d1442a6..1d2e4564010 100644 --- a/login/signup.php +++ b/login/signup.php @@ -51,7 +51,9 @@ } else { $currlang = current_language(); $langs = get_list_of_languages(); - $langmenu = popup_form ("$CFG->wwwroot/login/signup.php?lang=", $langs, "chooselang", $currlang, "", "", "", true); + $select = moodle_select::make_popup_form("$CFG->wwwroot/login/signup.php", 'lang', $langs, 'chooselang', $currlang); + $select->nothinglabel = false; + $langmenu = $OUTPUT->select($select); } $navlinks = array();