]> git.mjollnir.org Git - moodle.git/commitdiff
Added QUIZ_DEFAULT_SCORE ... later this will be a quiz option
authormoodler <moodler>
Mon, 3 Mar 2003 17:05:35 +0000 (17:05 +0000)
committermoodler <moodler>
Mon, 3 Mar 2003 17:05:35 +0000 (17:05 +0000)
mod/quiz/edit.php
mod/quiz/lib.php

index 576eb387d22c8885ca7e41d334a4f76f483106a8..1699981556cd8e1ff9b9dc4cd567e63585b21649 100644 (file)
@@ -91,7 +91,7 @@
                     }
                 }
                 $questions[] = $key;
-                $modform->grades[$key] = 1;   // default score
+                $modform->grades[$key] = QUIZ_DEFAULT_SCORE; 
             }
         }
         if (!empty($questions)) {
index 8edeffc9520112f944660da13a4d23d88127e7d4..560e36dc0bc309428b36248842ac5e8384f36e0c 100644 (file)
@@ -32,6 +32,8 @@ $QUIZ_FILE_FORMAT = array ( "custom"   => get_string("custom", "quiz"),
 
 define("QUIZ_PICTURE_DEFAULT_HEIGHT", "200");
 
+define("QUIZ_DEFAULT_SCORE", "1");
+
 /// FUNCTIONS ///////////////////////////////////////////////////////////////////
 
 function quiz_add_instance($quiz) {