MDL-86334 core: Improve after_config plugin callbacks
Plugin callbacks should be able to throw their exceptions
This commit is contained in:
+1
-5
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user