]> git.mjollnir.org Git - moodle.git/commitdiff
Use global parameters in authorize_print_orders(): $courseid & $userid
authorethem <ethem>
Wed, 26 Apr 2006 17:29:52 +0000 (17:29 +0000)
committerethem <ethem>
Wed, 26 Apr 2006 17:29:52 +0000 (17:29 +0000)
enrol/authorize/locallib.php

index c71e8a4045ae03e88e5ea5d02cff8f3066fc2b6b..924a585c47e69248ce0dd4005930088518f1b92f 100644 (file)
@@ -20,11 +20,10 @@ function authorize_print_orders()
 {
     global $CFG, $USER;
     global $strs, $authstrs;
+    global $courseid, $userid;
     require_once $CFG->libdir.'/tablelib.php';
 
     $perpage = 10;
-    $userid = optional_param('user', 0, PARAM_INT);
-    $courseid = optional_param('course', SITEID, PARAM_INT);
     $status = optional_param('status', AN_STATUS_NONE, PARAM_INT);
 
     if (!isteacher($courseid)) {