quiz editing: MDL-17294 removed the $showbreaks parameter from quiz_print_question_list

This commit is contained in:
pilpi 2008-11-28 18:37:24 +00:00
parent dfca83b7b1
commit 8c4d6dd2a2
2 changed files with 1 additions and 3 deletions

View file

@ -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))) {

View file

@ -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");