From: nicolasconnault Date: Mon, 10 Aug 2009 03:41:33 +0000 (+0000) Subject: MDL-19820 Converted calls to popup_form() X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=68e90fcc1398f918a29cda1d96ee98f14ef21495;p=moodle.git MDL-19820 Converted calls to popup_form() --- diff --git a/question/editlib.php b/question/editlib.php index bcc188ab55..97dca302d5 100644 --- a/question/editlib.php +++ b/question/editlib.php @@ -1160,14 +1160,15 @@ class question_bank_view { * prints a form to choose categories */ protected function display_category_form($contexts, $pageurl, $current) { - global $CFG; + global $CFG, $OUTPUT; /// Get all the existing categories now echo '
'; $catmenu = question_category_options($contexts, false, 0, true); - popup_form('edit.php?'.$pageurl->get_query_string().'&category=', - $catmenu, 'catmenu', $current, '', '', '', false, 'self', - get_string('selectacategory', 'question')); + $select = moodle_select::make_popup_form('edit.php?'.$pageurl->get_query_string(), 'category', $catmenu, 'catmenu', $current); + $select->nothinglabel = false; + $select->set_label(get_string('selectacategory', 'question')); + echo $OUTPUT->select($select); echo "
\n"; }