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

This commit is contained in:
Marina Glancy
2020-01-13 16:43:59 +01:00
parent 77d1c41502
commit a79da4f1bb
+1 -1
View File
@@ -1052,7 +1052,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());
}
}