]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19820 Converted calls to popup_form()
authornicolasconnault <nicolasconnault>
Mon, 10 Aug 2009 03:41:33 +0000 (03:41 +0000)
committernicolasconnault <nicolasconnault>
Mon, 10 Aug 2009 03:41:33 +0000 (03:41 +0000)
question/editlib.php

index bcc188ab5556dee602e631d794c8f7e601b1499b..97dca302d5ca66fdb927ebfd0d9ae287a25b8bf2 100644 (file)
@@ -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 '<div class="choosecategory">';
         $catmenu = question_category_options($contexts, false, 0, true);
-        popup_form('edit.php?'.$pageurl->get_query_string().'&amp;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 "</div>\n";
     }