From c0d44a520b9c4122c5232b8580197650f109208a Mon Sep 17 00:00:00 2001 From: ScottVerbeek <scottverbeek@catalyst-au.net> Date: Wed, 12 Feb 2025 08:52:14 +1000 Subject: [PATCH] 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) --- autologin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autologin.php b/autologin.php index a70ea4467..f6599948d 100644 --- a/autologin.php +++ b/autologin.php @@ -31,4 +31,4 @@ \auth_saml2\auto_login::finish((bool)$success, new moodle_url($url)); // Something strange went wrong, or somebody tried to directly link here. -print_error('errorinvalidautologin', 'auth_saml2'); +throw new \moodle_exception('errorinvalidautologin', 'auth_saml2');