]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-12305 - Quiz reorder tool broken. Merged from MOODLE_19_STABLE.
authortjhunt <tjhunt>
Wed, 21 Nov 2007 18:00:09 +0000 (18:00 +0000)
committertjhunt <tjhunt>
Wed, 21 Nov 2007 18:00:09 +0000 (18:00 +0000)
mod/quiz/edit.php

index 65e681ae2bbd388ae0b274e08186c60442f0e335..b7564802145697d7d4a4a2df88f94e9e84e5a2f8 100644 (file)
     $streditingquestions = get_string('editquestions', "quiz");
     $streditingquiz = get_string('editinga', 'moodle', $strquiz);
 
-
-
-
     // Get the course object and related bits.
     if (! $course = get_record("course", "id", $quiz->course)) {
         error("This course doesn't exist");
     }
 
-
     // Log this visit.
     add_to_log($cm->course, 'quiz', 'editquestions',
             "view.php?id=$cm->id", "$quiz->id", $cm->id);
                 $key = $matches[1];
                 $quiz->grades[$key] = $value;
                 quiz_update_question_instance($quiz->grades[$key], $key, $quiz->instance);
-            } elseif (preg_match('!^q([0-9]+)$!', $key, $matches)) {   // Parse input for ordering info
+            } elseif (preg_match('!^o([0-9]+)$!', $key, $matches)) {   // Parse input for ordering info
                 $key = $matches[1];
                 $questions[$value] = $oldquestions[$key];
             }