mirror of
https://github.com/moodle/moodle.git
synced 2025-04-23 17:34:56 +02:00
MDL-14679 towards /themes conversion
This commit is contained in:
parent
bc3c2336ba
commit
5dd27c57f6
@ -9,7 +9,7 @@ if (empty($THEME->chameleonenabled)) {
|
||||
}
|
||||
|
||||
$id = optional_param('id', SITEID, PARAM_INT);
|
||||
if (!$course = get_record('course', 'id', $id)) {
|
||||
if (!$course = $DB->get_record('course', array('id'=>$id))) {
|
||||
print_error('Incorrect course id');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user