From: tjhunt Date: Mon, 12 Jan 2009 07:24:03 +0000 (+0000) Subject: quiz editing: MDL-17296 further improve display of open and close dates on the editin... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=940b5fbb722f3513214187b8e61a991c8ac674d3;p=moodle.git quiz editing: MDL-17296 further improve display of open and close dates on the editing page. --- diff --git a/mod/quiz/editlib.php b/mod/quiz/editlib.php index 85d78f3b2b..4cf30b66f8 100644 --- a/mod/quiz/editlib.php +++ b/mod/quiz/editlib.php @@ -1493,41 +1493,42 @@ function quiz_print_status_bar($quiz){ - | timeopen > 0) { if ($timenow > $quiz->timeopen) { - $dates[] = get_string('openedat', 'quiz', userdate($quiz->timeopen, $dateformat)); + $dates[] = get_string('quizopenedon', 'quiz', userdate($quiz->timeopen)); } else { - $dates[] = get_string('opensat', 'quiz', userdate($quiz->timeopen, $dateformat)); + $dates[] = get_string('quizwillopen', 'quiz', userdate($quiz->timeopen)); $available = false; } } if ($quiz->timeclose > 0) { if ($timenow > $quiz->timeclose) { - $dates[] = get_string('closedat', 'quiz', userdate($quiz->timeclose, $dateformat)); + $dates[] = get_string('quizclosed', 'quiz', userdate($quiz->timeclose)); $available = false; } else { - $dates[] = get_string('closesat', 'quiz', userdate($quiz->timeclose, $dateformat)); + $dates[] = get_string('quizcloseson', 'quiz', userdate($quiz->timeclose)); } } if (empty($dates)) { $dates[] = get_string('alwaysavailable', 'quiz'); } - $dates = implode(', ', $dates); + $dates = implode('. ', $dates); + echo ' | '; if ($available) { - print_string('quizisopen', 'quiz', $dates); + print_string('quizisopen', 'quiz'); } else { - print_string('quizisclosed', 'quiz', $dates); + print_string('quizisclosed', 'quiz'); } - ?>'; + // If questions are shuffled, notify the user about the // question order not making much sense - $updateurl=new moodle_url("$CFG->wwwroot/course/mod.php", array("return"=>"true","update"=>$quiz->cmid, "sesskey"=>sesskey())); echo '
'; @@ -1551,7 +1552,7 @@ function quiz_print_status_bar($quiz){ $valquestionsparpage=get_string("unlimited"); } print_string("questionsperpagex","quiz",$valquestionsparpage); - + ?>