Permalink
Browse files

MDL-20830 workshop: better deadlines defaults

The workshop is saved with reasonable defaults even without touching the
date selectors.
  • Loading branch information...
mudrd8mz committed Nov 12, 2009
1 parent 63f3e26 commit 8dba124a139ccf7f1136afdb25ebad0a7145f1b6
Showing with 5 additions and 5 deletions.
  1. +5 −5 mod/workshop/mod.html
View
@@ -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;
}
?>

0 comments on commit 8dba124

Please sign in to comment.