From: nicolasconnault Date: Mon, 10 Aug 2009 08:38:45 +0000 (+0000) Subject: MDL-19756 Renamed moodle_select to html_select for better API consistency X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7b1f2c829ff9c1193c99c3516fefca5fba88f0af;p=moodle.git MDL-19756 Renamed moodle_select to html_select for better API consistency --- diff --git a/admin/environment.php b/admin/environment.php index 93c8bf043b..d1b84f1854 100644 --- a/admin/environment.php +++ b/admin/environment.php @@ -121,7 +121,7 @@ /// Print form and popup menu echo '
'.$strmoodleversion.' '; - $select = moodle_select::make_popup_form("$CFG->wwwroot/$CFG->admin/environment.php", 'version', $versions, 'selectversion', $version); + $select = html_select::make_popup_form("$CFG->wwwroot/$CFG->admin/environment.php", 'version', $versions, 'selectversion', $version); $select->nothinglabel = false; echo $OUTPUT->select($select); echo '
'; diff --git a/admin/filters.php b/admin/filters.php index 440d3d73ad..d71b2f4736 100644 --- a/admin/filters.php +++ b/admin/filters.php @@ -248,7 +248,7 @@ function get_table_row($filterinfo, $isfirstrow, $islastactive, $applytostrings) } // Disable/off/on - $select = moodle_select::make_popup_form(action_url($filter, 'setstate'), 'newstate', $activechoices, 'active' . basename($filter), $filterinfo->active); + $select = html_select::make_popup_form(action_url($filter, 'setstate'), 'newstate', $activechoices, 'active' . basename($filter), $filterinfo->active); $select->nothinglabel = false; $select->form->button->text = get_string('save', 'admin'); $row[] = $OUTPUT->select($select); @@ -271,7 +271,7 @@ function get_table_row($filterinfo, $isfirstrow, $islastactive, $applytostrings) $row[] = $updown; // Apply to strings. - $select = moodle_select::make_popup_form(action_url($filter, 'setapplyto'), 'stringstoo', $applytochoices, 'applyto' . basename($filter), $applytostrings); + $select = html_select::make_popup_form(action_url($filter, 'setapplyto'), 'stringstoo', $applytochoices, 'applyto' . basename($filter), $applytostrings); $select->nothinglabel = false; $select->disabled = $filterinfo->active == TEXTFILTER_DISABLED; $select->form->button->text = get_string('save', 'admin'); diff --git a/admin/lang.php b/admin/lang.php index a0ec39f37c..15e7cea962 100644 --- a/admin/lang.php +++ b/admin/lang.php @@ -140,7 +140,7 @@ echo $OUTPUT->box_start(); $currlang = current_language(); $langs = get_list_of_languages(false, true); - $select = moodle_select::make_popup_form("$CFG->wwwroot/$CFG->admin/lang.php", 'lang', $langs, "chooselang", $currlang); + $select = html_select::make_popup_form("$CFG->wwwroot/$CFG->admin/lang.php", 'lang', $langs, "chooselang", $currlang); $select->nothinglabel = false; $select->set_label($strcurrentlanguage.':'); echo $OUTPUT->select($select); @@ -494,7 +494,7 @@ //$selectionlabel .= $strfilestoredin; $selectionlabel .= $uselocal ? "{$currentlang}_local" : $currentlang; $selectionlabel .= '/'; - $select = moodle_select::make_popup_form("$CFG->wwwroot/$CFG->admin/lang.php?mode=compare", 'currentfile', $menufiles, "choosefile", $currentfile); + $select = html_select::make_popup_form("$CFG->wwwroot/$CFG->admin/lang.php?mode=compare", 'currentfile', $menufiles, "choosefile", $currentfile); $select->nothinglabel = $strchoosefiletoedit; $select->set_label($selectionlabel); echo $OUTPUT->select($select); @@ -761,7 +761,7 @@ //$selectionlabel .= $strfilestoredin; $selectionlabel .= $uselocal ? "{$currentlang}_local" : $currentlang; $selectionlabel .= '/help/'; - $select = moodle_select::make_popup_form("$CFG->wwwroot/$CFG->admin/lang.php?mode=helpfiles", 'currentfile', $menufiles, "choosefile", $currentfile); + $select = html_select::make_popup_form("$CFG->wwwroot/$CFG->admin/lang.php?mode=helpfiles", 'currentfile', $menufiles, "choosefile", $currentfile); $select->nothinglabel = $strchoosefiletoedit; $select->set_label($selectionlabel); echo $OUTPUT->select($select); diff --git a/admin/roles/assign.php b/admin/roles/assign.php index 07ba75bef8..c22c8f176b 100755 --- a/admin/roles/assign.php +++ b/admin/roles/assign.php @@ -373,7 +373,7 @@ /// Print a form to swap roles, and a link back to the all roles list. echo '