From 641454c6b2a745ec05c7e4f0194530f3e038377f Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Thu, 6 Aug 2009 00:35:06 +0000 Subject: [PATCH] MDL-19799 Upgraded calls to choose_from_menu_nested --- lib/questionlib.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/questionlib.php b/lib/questionlib.php index 45842430977..862bb137bca 100644 --- a/lib/questionlib.php +++ b/lib/questionlib.php @@ -2348,13 +2348,17 @@ function add_indented_names($categories, $nochildrenof = -1) { * @param integer $selected optionally, the id of a category to be selected by default in the dropdown. */ function question_category_select_menu($contexts, $top = false, $currentcat = 0, $selected = "", $nochildrenof = -1) { + global $OUTPUT; $categoriesarray = question_category_options($contexts, $top, $currentcat, false, $nochildrenof); if ($selected) { $nothing = ''; } else { - $nothing = 'choose'; + $nothing = 'choosedots'; } - choose_from_menu_nested($categoriesarray, 'category', $selected, $nothing); + $select = moodle_select::make($categoriesarray, 'category', $selected); + $select->nothingvalue = $nothing; + $select->nested = true; + echo $OUTPUT->select($select); } /**