Merge branch 'MDL-41827_master' of git://github.com/dmonllao/moodle
[moodle.git] / admin / tool / generator / cli / maketestsite.php
index 7bff781..cd9985c 100644 (file)
@@ -91,7 +91,7 @@ try {
 }
 
 // Switch to admin user account.
-session_set_user(get_admin());
+\core\session\manager::set_user(get_admin());
 
 // Do backend code to generate site.
 $backend = new tool_generator_site_backend($size, $options['bypasscheck'], $fixeddataset, $filesizelimit, empty($options['quiet']));