]> git.mjollnir.org Git - moodle.git/commitdiff
Forgot to check this slight fix in to fix the default days
authormoodler <moodler>
Wed, 20 Aug 2003 12:03:26 +0000 (12:03 +0000)
committermoodler <moodler>
Wed, 20 Aug 2003 12:03:26 +0000 (12:03 +0000)
mod/journal/mod.html

index 0794b3e2b9e4a250b246f460b85f9740f4b4e0e6..4e86822954d10b7a6bde49698d5acd62ed03f802 100644 (file)
@@ -9,7 +9,11 @@
         $form->assessed = "0";
     }
     if (!isset($form->days)) {
-        $form->days = "14";
+        if ($course->format == "weeks") {
+            $form->days = "7";
+        } else {
+            $form->days = "0";
+        }
     }
 ?>