MDL-67680 core: Catch PHP exceptions in the after_config callback

This commit is contained in:
Marina Glancy
2020-01-13 17:01:27 +01:00
parent 77be1e3fe3
commit f9a80888bc
+1 -1
View File
@@ -1047,7 +1047,7 @@ foreach ($pluginswithfunction as $plugins) {
foreach ($plugins as $function) {
try {
$function();
} catch (Exception $e) {
} catch (Throwable $e) {
debugging("Exception calling '$function'", DEBUG_DEVELOPER, $e->getTrace());
}
}