diff --git a/lang/en/quiz.php b/lang/en/quiz.php index 02483523517..4d7dc0cd85d 100644 --- a/lang/en/quiz.php +++ b/lang/en/quiz.php @@ -181,6 +181,7 @@ $string['illegalformulasyntax'] = 'Illegal formula syntax starting with \'$a\''; $string['imagedisplay'] = 'Image to display'; $string['imagemissing'] = 'Image not available at line $a. The filename will be ignored'; $string['importmax10error'] = 'There is an error in the question. You may not have more than ten answers'; +$string['importmaxerror'] = 'There is an error in the question. There are too many answers.'; $string['importminerror'] = 'There is an error in the question. There are not enough answers for this question type'; $string['importquestions'] = 'Import questions from file'; $string['incorrect'] = 'Incorrect'; diff --git a/mod/quiz/format/gift/format.php b/mod/quiz/format/gift/format.php index b497e750c6b..653224c2f4b 100755 --- a/mod/quiz/format/gift/format.php +++ b/mod/quiz/format/gift/format.php @@ -110,14 +110,6 @@ class quiz_format_gift extends quiz_default_format { return false; } - if ($countanswers>QUIZ_MAX_NUMBER_ANSWERS) { - if ($this->displayerrors) { - $errormessage = get_string( 'importmaxerror', 'quiz' ); - echo "

$text

\n"; - echo "

$errormessage

"; - } - return false; - } return true; }