From: moodler Date: Mon, 3 Mar 2003 17:05:35 +0000 (+0000) Subject: Added QUIZ_DEFAULT_SCORE ... later this will be a quiz option X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c363d9d11fee2b217d6a3f5023c8cbbcecaf74c6;p=moodle.git Added QUIZ_DEFAULT_SCORE ... later this will be a quiz option --- diff --git a/mod/quiz/edit.php b/mod/quiz/edit.php index 576eb387d2..1699981556 100644 --- a/mod/quiz/edit.php +++ b/mod/quiz/edit.php @@ -91,7 +91,7 @@ } } $questions[] = $key; - $modform->grades[$key] = 1; // default score + $modform->grades[$key] = QUIZ_DEFAULT_SCORE; } } if (!empty($questions)) { diff --git a/mod/quiz/lib.php b/mod/quiz/lib.php index 8edeffc952..560e36dc0b 100644 --- a/mod/quiz/lib.php +++ b/mod/quiz/lib.php @@ -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) {