MDL-20204 fixed regression from button conversion
authorPetr Skoda <skodak@moodle.org>
Wed, 10 Feb 2010 11:35:54 +0000 (11:35 +0000)
committerPetr Skoda <skodak@moodle.org>
Wed, 10 Feb 2010 11:35:54 +0000 (11:35 +0000)
mod/quiz/editlib.php

index 1c6de4a..a5eb9fc 100644 (file)
@@ -604,7 +604,7 @@ function quiz_print_question_list($quiz, $pageurl, $allowdelete = true,
                 if (!$reordertool && !$quiz->shufflequestions) {
                     echo $OUTPUT->container_start('addpage');
                     $url = new moodle_url($pageurl->out_omit_querystring(), array('cmid' => $quiz->cmid, 'courseid' => $quiz->course, 'addpage' => $count, 'sesskey' => sesskey()));
-                    echo $OUTPUT->single_button($url, get_string('addpagehere', 'quiz'), 'get', $hasattempts);
+                    echo $OUTPUT->single_button($url, get_string('addpagehere', 'quiz'), 'get', array('disabled'=>$hasattempts));
                     echo $OUTPUT->container_end();
                 }
                 $pageopen = false;