mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
Merge branch 'MDL-42343_master' of git://github.com/dmonllao/moodle
This commit is contained in:
commit
276c451b2a
@ -94,7 +94,7 @@ if (empty($CFG->tool_generator_users_password) || is_bool($CFG->tool_generator_u
|
||||
}
|
||||
|
||||
// Switch to admin user account.
|
||||
session_set_user(get_admin());
|
||||
\core\session\manager::set_user(get_admin());
|
||||
|
||||
// Create files.
|
||||
$courseid = $DB->get_field('course', 'id', array('shortname' => $shortname));
|
||||
|
Loading…
x
Reference in New Issue
Block a user