]> git.mjollnir.org Git - moodle.git/commitdiff
Fix performance problem with lots of categories. http://moodle.org/mod/forum/discuss...
authortjhunt <tjhunt>
Sun, 1 Oct 2006 20:32:12 +0000 (20:32 +0000)
committertjhunt <tjhunt>
Sun, 1 Oct 2006 20:32:12 +0000 (20:32 +0000)
question/question.php

index d42e17b20b9266994d8e8c2b9f000da725d0e9c0..f2bdcb778f6ff9798cd2032443088c976b4cbcf0 100644 (file)
     $gradeoptions = $creategrades->gradeoptions;
     $gradeoptionsfull = $creategrades->gradeoptionsfull;
 
-    if (!$categories = question_category_menu($course->id, false)) {
-        error("No categories!");
-    }
-
-
-    // Print the question editing form
-
+    // Initialise defaults if necessary.
     if (empty($question->id)) {
         $question->id = "";
     }
         $question->generalfeedback = "";
     }
 
-    // Set up some Richtext editing if necessary
+    // Set up some richtext editing if necessary
     if ($usehtmleditor = can_use_richtext_editor()) {
         $defaultformat = FORMAT_HTML;
     } else {
         $err = $question->errors;
     }
 
+    // Print the question editing form
     echo '<br />';
     print_simple_box_start('center');
     require_once('type/'.$qtype.'/editquestion.php');