MDL-42343 tool_generator: Using the new session manager

This commit is contained in:
David Monllao
2013-10-21 11:14:14 +08:00
parent 4e47920f08
commit 98d72f12af
+1 -1
View File
@@ -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));