Merged from STABLE
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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 "<p>$text</p>\n";
|
||||
echo "<p>$errormessage</p>";
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user