From: tjhunt Date: Wed, 21 Nov 2007 18:00:09 +0000 (+0000) Subject: MDL-12305 - Quiz reorder tool broken. Merged from MOODLE_19_STABLE. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=cd6ef0a5bbf0638518906d65893206ded2764ab7;p=moodle.git MDL-12305 - Quiz reorder tool broken. Merged from MOODLE_19_STABLE. --- diff --git a/mod/quiz/edit.php b/mod/quiz/edit.php index 65e681ae2b..b756480214 100644 --- a/mod/quiz/edit.php +++ b/mod/quiz/edit.php @@ -99,15 +99,11 @@ $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); @@ -247,7 +243,7 @@ $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]; }