From: tjhunt Date: Mon, 16 Oct 2006 11:05:45 +0000 (+0000) Subject: MDL-6650 - Previewing individual random questions from the quiz editing screen was... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=3a3771d2b931b4da800bd43d3af9b5ff2376c181;p=moodle.git MDL-6650 - Previewing individual random questions from the quiz editing screen was not working, and anyway, I'm not sure it makes any sense, so I removed that preview link. Merged from MOODLE_17_STABLE. --- diff --git a/mod/quiz/editlib.php b/mod/quiz/editlib.php index 092f65c180..4ca0ba5302 100644 --- a/mod/quiz/editlib.php +++ b/mod/quiz/editlib.php @@ -257,7 +257,7 @@ function quiz_print_question_list($quiz, $allowdelete=true, $showbreaks=true, $r print_question_icon($question, $canedit); echo ""; echo ''; - if ($question->qtype == DESCRIPTION) { + if ($question->qtype == 'description') { echo " \n"; } else { echo ' - pixpath/t/preview.gif\" border=\"0\" alt=\"$strpreview\" />"; + if ($question->qtype != 'random') { + echo " + pixpath/t/preview.gif\" border=\"0\" alt=\"$strpreview\" />"; + } if ($canedit) { echo "wwwroot/question/question.php?id=$qnum$context\"> pixpath/t/edit.gif\" border=\"0\" alt=\"$stredit\" />";