Skip to content

Commit c0d44a5

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

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('errorinvalidautologin', 'auth_saml2');

0 commit comments

Comments
 (0)