MDL-78750 communication_matrix: Fixed available providers

This commit is contained in:
Stevani Andolo
2023-09-28 09:13:22 +02:00
committed by Sara Arjona
parent a78921005f
commit 369fee885f
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -17,6 +17,7 @@
namespace core\plugininfo;
use admin_settingpage;
use core_communication\processor;
use core_plugin_manager;
use moodle_url;
@@ -77,8 +78,7 @@ class communication extends base {
// Filter to return only enabled plugins.
$enabled = [];
foreach ($plugins as $plugin) {
$disabled = get_config('communication_' . $plugin, 'disabled');
if (empty($disabled)) {
if (processor::is_provider_available('communication_' . $plugin)) {
$enabled[$plugin] = $plugin;
}
}