Edit link in preview mode now also for descriptions, see bug 4518
This commit is contained in:
@@ -33,6 +33,12 @@ class quiz_description_qtype extends quiz_default_questiontype {
|
||||
$question->questiontextformat,
|
||||
NULL, $cmoptions->course);
|
||||
quiz_print_possible_question_image($question, $cmoptions->course);
|
||||
if (isteacher($cmoptions->course)) {
|
||||
echo '<font size="1">';
|
||||
link_to_popup_window ('/mod/quiz/question.php?id=' . $question->id,
|
||||
'editquestion', get_string('edit'), 450, 550, get_string('edit'));
|
||||
echo '</font>';
|
||||
}
|
||||
print_simple_box_end('center', '90%');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user