Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-20830 workshop: better deadlines defaults

The workshop is saved with reasonable defaults even without touching the
date selectors.
  • Loading branch information...
commit 8dba124a139ccf7f1136afdb25ebad0a7145f1b6 1 parent 63f3e26
@mudrd8mz mudrd8mz authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 mod/workshop/mod.html
View
10 mod/workshop/mod.html
@@ -67,19 +67,19 @@
$form->maxbytes = "";
}
if (empty($form->submissionstart)) {
- $form->submissionstart = time();
+ $form->submissionstart = time()+60*60*24;
}
if (empty($form->assessmentstart)) {
- $form->assessmentstart = time();
+ $form->assessmentstart = time()+60*60*24;
}
if (empty($form->submissionend)) {
- $form->submissionend = time();
+ $form->submissionend = time()+60*60*24*8;
}
if (empty($form->assessmentend)) {
- $form->assessmentend = time();
+ $form->assessmentend = time()+60*60*24*8;
}
if (empty($form->releasegrades)) {
- $form->releasegrades = time();
+ $form->releasegrades = time()+60*60*24*15;
}
?>
Please sign in to comment.
Something went wrong with that request. Please try again.