$string['correctanswers'] = 'Correct answers';
$string['correctanswershows'] = 'Correct answer shows';
$string['corrresp'] = 'Correct Response';
+$string['closebeforeopen'] = 'Could not update the quiz. You have specified a close date before the open date.';
$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.';
$quiz->availableminute);
}
+ if ($quiz->timeopen != 0 && $quiz->timeclose != 0 && $quiz->timeclose < $quiz->timeopen) {
+ return get_string('closebeforeopen', 'quiz');
+ }
+
$quiz->timelimit = round($quiz->timelimit);
if (empty($quiz->name)) {
$quiz->availableminute);
}
+ if ($quiz->timeopen != 0 && $quiz->timeclose != 0 && $quiz->timeclose < $quiz->timeopen) {
+ return get_string('closebeforeopen', 'quiz');
+ }
+
$quiz->timelimit = round($quiz->timelimit);
$quiz->id = $quiz->instance;