From: nicolasconnault Date: Tue, 18 Aug 2009 00:12:11 +0000 (+0000) Subject: MDL-19810 Upgraded calls to choose_from_menu X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e5f5d968969a1b5fd50801aa980b32b257b09436;p=moodle.git MDL-19810 Upgraded calls to choose_from_menu --- diff --git a/mod/hotpot/report.php b/mod/hotpot/report.php index f40641fcb3..33b288b028 100644 --- a/mod/hotpot/report.php +++ b/mod/hotpot/report.php @@ -453,7 +453,7 @@ function hotpot_print_report_heading(&$course, &$cm, &$hotpot, &$mode) { echo $OUTPUT->heading($hotpot->name); } function hotpot_print_report_selector(&$course, &$hotpot, &$formdata) { - global $CFG, $DB; + global $CFG, $DB, $OUTPUT; $reports = hotpot_get_report_names('overview,simplestat,fullstat'); @@ -551,7 +551,7 @@ function hotpot_print_report_selector(&$course, &$hotpot, &$formdata) { print ''.get_string('reportcontent', 'hotpot').':'; foreach ($menus as $name => $options) { $value = $formdata[$name]; - print choose_from_menu($options, $name, $value, "", "", 0, true); + print $OUTPUT->select(html_select::make($options, $name, $value, false)); }; print ''; @@ -590,7 +590,7 @@ function hotpot_print_report_selector(&$course, &$hotpot, &$formdata) { print ''; foreach ($menus as $name => $options) { $value = $formdata[$name]; - print ''.get_string($name, 'hotpot').':'.choose_from_menu($options, $name, $value, "", "", 0, true).''; + print ''.get_string($name, 'hotpot').':'.$OUTPUT->select(html_select::make($options, $name, $value, false)).''; } print '';