Permalink
Browse files

MDL-37894 Show the quiz close date even if the quiz is not open yet.

People care a lot about deadlines!
  • Loading branch information...
timhunt committed Feb 18, 2013
1 parent 1dd6835 commit 6e78a7bdb40721c7e2f4a18c918f08403c703ce1
Showing with 3 additions and 0 deletions.
  1. +3 −0 mod/quiz/accessrule/openclosedate/rule.php
@@ -47,6 +47,9 @@ public function description() {
if ($this->timenow < $this->quiz->timeopen) {
$result[] = get_string('quiznotavailable', 'quizaccess_openclosedate',
userdate($this->quiz->timeopen));
+ if ($this->quiz->timeclose) {
+ $result[] = get_string('quizcloseson', 'quiz', userdate($this->quiz->timeclose));
+ }
} else if ($this->quiz->timeclose && $this->timenow > $this->quiz->timeclose) {
$result[] = get_string('quizclosed', 'quiz', userdate($this->quiz->timeclose));

0 comments on commit 6e78a7b

Please sign in to comment.