Skip to content

Commit

Permalink
MDL-73905 core: fix coding_exception missing namespace
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
stronk7 committed Feb 18, 2022
1 parent 0f94f29 commit 3a352b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/classes/message/manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public static function send_message_to_conversation(message $eventdata, \stdClas
// exist in the message_provider table (thus there is no default settings for them).
$preferrormsg = "Could not load preference $defaultlockedpreference.
Make sure the component and name you supplied to message_send() are valid.";
throw new coding_exception($preferrormsg);
throw new \coding_exception($preferrormsg);
}

$enabledpreference = 'message_provider_'.$preferencebase . '_enabled';
Expand Down

0 comments on commit 3a352b4

Please sign in to comment.