From 19ebd1557a873452a53c5448b77ccf15ae14ecf0 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 21 Jun 2004 12:36:13 +0000 Subject: [PATCH] Minor formatting of timelimit stuff --- mod/quiz/mod.html | 4 +--- mod/quiz/view.php | 8 +++----- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/mod/quiz/mod.html b/mod/quiz/mod.html index 77d4ffd067..2d6a9fe6d7 100644 --- a/mod/quiz/mod.html +++ b/mod/quiz/mod.html @@ -113,9 +113,7 @@

:

timelimit); - echo " "; - print_string("minutes","quiz"); + print_timer_selector($form->timelimit, get_string("minutes","quiz")); helpbutton("timelimit", get_string("quiztimer","quiz"), "quiz"); ?> diff --git a/mod/quiz/view.php b/mod/quiz/view.php index f79c038042..9e5d3cb50e 100644 --- a/mod/quiz/view.php +++ b/mod/quiz/view.php @@ -140,12 +140,10 @@ print_table($table); } - // BEGIN EDIT - if($available and $quiz->timelimit) { - echo "

".get_string("quiztimelimit","quiz", format_time($quiz->timelimit * 60))."

"; - } - // END EDIT if ($available) { + if ($quiz->timelimit) { + echo "

".get_string("quiztimelimit","quiz", format_time($quiz->timelimit * 60))."

"; + } echo "

".get_string("quizavailable", "quiz", userdate($quiz->timeclose)); } else if ($timenow < $quiz->timeopen) { echo "

".get_string("quiznotavailable", "quiz", userdate($quiz->timeopen)); -- 2.39.5