]> git.mjollnir.org Git - moodle.git/commitdiff
Supply default values for more arguments of question_list()
authorgustav_delius <gustav_delius>
Thu, 6 Apr 2006 12:54:48 +0000 (12:54 +0000)
committergustav_delius <gustav_delius>
Thu, 6 Apr 2006 12:54:48 +0000 (12:54 +0000)
question/editlib.php

index 57aff6c0ca755df8b8e8b77193c04ff6d471a707..74f38ca1c07ee242b49eb771eb3f4e3fd9220f9d 100644 (file)
@@ -92,8 +92,8 @@ function question_category_form($course, $current, $recurse=1, $showhidden=false
 * @param int $perpage     Number of questions to show per page
 * @param boolean $showhidden   True if also hidden questions should be displayed
 */
-function question_list($course, $categoryid, $quizid,
- $recurse=1, $page, $perpage, $showhidden=false, $sortorder='qtype, name ASC') {
+function question_list($course, $categoryid, $quizid=0,
+ $recurse=1, $page=0, $perpage=100, $showhidden=false, $sortorder='qtype, name ASC') {
     global $QTYPE_MENU, $USER, $CFG;
 
     $strcategory = get_string("category", "quiz");