From 8c4d6dd2a2c08b88e1747f119ba72c24ed8fedde Mon Sep 17 00:00:00 2001 From: pilpi Date: Fri, 28 Nov 2008 18:37:24 +0000 Subject: [PATCH] quiz editing: MDL-17294 removed the $showbreaks parameter from quiz_print_question_list --- mod/quiz/edit.php | 1 - mod/quiz/editlib.php | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/mod/quiz/edit.php b/mod/quiz/edit.php index 6d1670e7b2..29ec41811c 100644 --- a/mod/quiz/edit.php +++ b/mod/quiz/edit.php @@ -702,7 +702,6 @@ if($quiz_reordertool){ } ob_start(); $sumgrades = quiz_print_question_list($quiz, $thispageurl, true, - null, $quiz_reordertool, $quiz_qbanktool, $quiz_has_attempts); if (!$DB->set_field('quiz', 'sumgrades', $sumgrades, array('id' => $quiz->instance))) { diff --git a/mod/quiz/editlib.php b/mod/quiz/editlib.php index 9a9aa7336c..dcced9c2b7 100644 --- a/mod/quiz/editlib.php +++ b/mod/quiz/editlib.php @@ -160,9 +160,8 @@ function quiz_update_question_instance($grade, $questionid, $quizid) { * @param boolean $quiz_qbanktool Indicates whether the question bank should be displayed * @param boolean $hasattempts Indicates whether the quiz has attempts */ -//TODO: Tim? remove showbreaks since it is no longer used function quiz_print_question_list($quiz, $pageurl, $allowdelete=true, - $showbreaks=true,$reordertool=false, $quiz_qbanktool=false, + $reordertool=false, $quiz_qbanktool=false, $hasattempts=false) { global $USER, $CFG, $QTYPES, $DB; $strorder = get_string("order"); -- 2.39.5