Skip to content

Commit ef76dbd

Browse files
committed
Moodle 4.5 deprecated print_error, use moodle_exception
- Final deprecation of . Please use the class instead. For more information see [MDL-74484](https://tracker.moodle.org/browse/MDL-74484)
1 parent 43fe445 commit ef76dbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autologin.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@
3131
\auth_saml2\auto_login::finish((bool)$success, new moodle_url($url));
3232

3333
// Something strange went wrong, or somebody tried to directly link here.
34-
print_error('errorinvalidautologin', 'auth_saml2');
34+
throw new \moodle_exception(get_string('errorinvalidautologin', 'auth_saml2'));

0 commit comments

Comments
 (0)