Merge branch 'MDL-41827_master' of git://github.com/dmonllao/moodle
[moodle.git] / admin / tool / generator / cli / maketestcourse.php
index ce242e3..aa57828 100644 (file)
@@ -93,7 +93,7 @@ if ($error = tool_generator_course_backend::check_shortname_available($shortname
 }
 
 // Switch to admin user account.
-session_set_user(get_admin());
+\core\session\manager::set_user(get_admin());
 
 // Do backend code to generate course.
 $backend = new tool_generator_course_backend($shortname, $size, $fixeddataset, $filesizelimit, empty($options['quiet']));