No submit button in readonly mode

This commit is contained in:
gustav_delius
2006-02-21 23:06:47 +00:00
parent 3fc63cbe96
commit dcfa8b2aa9
+1 -1
View File
@@ -651,7 +651,7 @@ class quiz_default_questiontype {
types. It prints a mark button in the case where individual marking is
allowed. */
if($cmoptions->optionflags & QUIZ_ADAPTIVE) {
if (($cmoptions->optionflags & QUIZ_ADAPTIVE) and !$options->readonly) {
echo '<input type="submit" name="';
echo $question->name_prefix;
echo 'mark" value="';