Merge branch 'MDL-39155' of https://github.com/jacks92/moodle
[moodle.git] / mod / quiz / mod_form.php
index 297baa0..e939401 100644 (file)
@@ -250,8 +250,10 @@ class mod_quiz_mod_form extends moodleform_mod {
         $mform->addElement('header', 'display', get_string('display', 'form'));
 
         // Show user picture.
         $mform->addElement('header', 'display', get_string('display', 'form'));
 
         // Show user picture.
-        $mform->addElement('selectyesno', 'showuserpicture',
-                get_string('showuserpicture', 'quiz'));
+        $mform->addElement('select', 'showuserpicture', get_string('showuserpicture', 'quiz'), array(
+                QUIZ_SHOWIMAGE_NONE => get_string('shownoimage', 'quiz'),
+                QUIZ_SHOWIMAGE_SMALL => get_string('showsmallimage', 'quiz'),
+                QUIZ_SHOWIMAGE_LARGE => get_string('showlargeimage', 'quiz')));
         $mform->addHelpButton('showuserpicture', 'showuserpicture', 'quiz');
         $mform->setAdvanced('showuserpicture', $quizconfig->showuserpicture_adv);
         $mform->setDefault('showuserpicture', $quizconfig->showuserpicture);
         $mform->addHelpButton('showuserpicture', 'showuserpicture', 'quiz');
         $mform->setAdvanced('showuserpicture', $quizconfig->showuserpicture_adv);
         $mform->setDefault('showuserpicture', $quizconfig->showuserpicture);