From ea801b6374d000a5ba50410dd6d105d46009a7c3 Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Fri, 18 Feb 2022 12:02:59 +0100 Subject: [PATCH] MDL-73905 core: fix coding_exception missing namespace This was leading to exception: Class 'core\message\coding_exception' not found Surely we weren't facing this before MDL-67853, but it seems that now we are hitting it sometimes (being investigated @ MDL-73747). So, just ensure the proper \coding_exception is used. --- lib/classes/message/manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/classes/message/manager.php b/lib/classes/message/manager.php index 7e7e6c4d163..2870465d4bd 100644 --- a/lib/classes/message/manager.php +++ b/lib/classes/message/manager.php @@ -241,7 +241,7 @@ class manager { // exist in the message_provider table (thus there is no default settings for them). $preferrormsg = "Could not load preference $defaultpreference. Make sure the component and name you supplied to message_send() are valid."; - throw new coding_exception($preferrormsg); + throw new \coding_exception($preferrormsg); } // Find out if user has configured this output.