MDL-67680 core: Catch PHP exceptions in the after_config callback
This commit is contained in:
+1
-1
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user