Index: temp_moodle_dev/moodle/mod/quiz/editlib.php =================================================================== RCS file: /usr/local/cvsroot/temp_moodle_dev/moodle/mod/quiz/editlib.php,v diff -u -r1.1 -r1.2 --- temp_moodle_dev/moodle/mod/quiz/editlib.php 14 Nov 2008 06:30:10 -0000 1.1 +++ temp_moodle_dev/moodle/mod/quiz/editlib.php 28 Oct 2009 07:32:02 -0000 1.2 @@ -62,7 +62,6 @@ * This is updated by this function */ function quiz_add_quiz_question($id, &$quiz) { - $questions = explode(",", $quiz->questions); if (in_array($id, $questions)) { @@ -92,7 +91,8 @@ // update question grades $questionrecord = get_record("question", "id", $id); - $quiz->grades[$id] = $questionrecord->defaultgrade; + $quiz->grades[$id] + = $questionrecord->defaultgrade; quiz_update_question_instance($quiz->grades[$id], $id, $quiz->instance); return true; @@ -132,10 +132,7 @@ * @param boolean $showbreaks Indicates whether the page breaks should be displayed * @param boolean $showbreaks Indicates whether the reorder tool should be displayed */ - -function quiz_print_question_list($quiz, $pageurl, $allowdelete=true, $showbreaks=true, $reordertool=false, $lamsupdateurl=null) { //we pass the Lams update URL to be able later to go back to the Lams page - // old function quiz_print_question_list($quiz, $pageurl, $allowdelete=true, $showbreaks=true, $reordertool=false) { - +function quiz_print_question_list($quiz, $pageurl, $allowdelete=true, $showbreaks=true, $reordertool=false) { global $USER, $CFG, $QTYPES; $strorder = get_string("order"); @@ -179,13 +176,7 @@ $order[] = 0; $lastindex++; } - // If this is a Quiz inside a Lams sequence we pass the Lams update URL to the edit page - if($quiz->is_lams==1){ - $address="edit.php?lamsUpdateURL=".urlencode($lamsupdateurl); - echo '
\n"; /// Form to choose to show pagebreaks and to repaginate quiz - if($quiz->is_lams==1){ //if press GO button and in a Lams sequence you keep the lamsupdateurl to be able to come back to lams later - $address2="edit.php?lamsUpdateURL=".urlencode($lamsupdateurl); - echo '