MDL-86334 core: Improve after_config plugin callbacks

Plugin callbacks should be able to throw their exceptions
This commit is contained in:
Huong Nguyen
2025-09-29 08:18:20 +07:00
parent 9868bf12c1
commit 2d3ddd06c1
+1 -5
View File
@@ -1164,10 +1164,6 @@ initialise_local_config_cache();
$pluginswithfunction = get_plugins_with_function('after_config', 'lib.php');
foreach ($pluginswithfunction as $plugins) {
foreach ($plugins as $function) {
try {
$function();
} catch (Throwable $e) {
debugging("Exception calling '$function'", DEBUG_DEVELOPER, $e->getTrace());
}
$function();
}
}