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...
1 parent 09de5eb commit fd8c97d2646ac1206d6f10d33b1ac5ec93c1c6b9 @timhunt timhunt committed Feb 18, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 mod/quiz/accessrule/openclosedate/rule.php
View
3 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 fd8c97d

Please sign in to comment.