From fa92dd24371321ff3105674b86c6060e61c4a67f Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Wed, 29 Dec 2004 07:48:21 +0000 Subject: [PATCH] improved an error message, see http://moodle.org/bugs/bug.php?op=show&bugid=504&pos=0 --- lang/en/quiz.php | 1 + mod/quiz/questiontypes/randomsamatch/randomsamatch.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lang/en/quiz.php b/lang/en/quiz.php index 5156c5a0b0..76f5631640 100644 --- a/lang/en/quiz.php +++ b/lang/en/quiz.php @@ -58,6 +58,7 @@ $string['countdown'] = 'Countdown'; $string['countdownfinished'] = 'The quiz is closing, you should submit your answers now.'; $string['countdowntenminutes'] = 'The quiz will be closing in ten minutes.'; $string['coursetestmanager'] = 'Course Test Manager format'; +$string['createfirst'] = 'You must create some short-answer questions first. '; $string['createmultiple'] = 'Create multiple questions'; $string['createnewquestion'] = 'Create new question'; $string['custom'] = 'Custom format'; diff --git a/mod/quiz/questiontypes/randomsamatch/randomsamatch.html b/mod/quiz/questiontypes/randomsamatch/randomsamatch.html index 5a0987fd18..bd5c6f51ef 100644 --- a/mod/quiz/questiontypes/randomsamatch/randomsamatch.html +++ b/mod/quiz/questiontypes/randomsamatch/randomsamatch.html @@ -132,7 +132,7 @@ if ($numberavailable < 2) { - echo "ERROR"; + echo get_string('createfirst', 'quiz'); $maxrandom=2; -- 2.39.5