"MDL-19118, replace course it with course object to improve performance"

This commit is contained in:
Dongsheng Cai 2010-03-16 08:09:19 +00:00
parent 5758852313
commit 80555111bc
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ require_once($CFG->dirroot . '/comment/lib.php');
$contextid = optional_param('contextid', SYSCONTEXTID, PARAM_INT);
list($context, $course, $cm) = get_context_info_array($contextid);
require_login($course->id, true, $cm);
require_login($course, true, $cm);
$err = new stdclass;

View File

@ -30,7 +30,7 @@ if ($context->contextlevel == CONTEXT_MODULE) {
} else {
$cm = null;
}
require_login($course->id, true, $cm);
require_login($course, true, $cm);
$err = new stdclass;