This commit is contained in:
Huong Nguyen 2023-09-08 08:52:22 +07:00 committed by Jun Pataleta
commit cb5c8b59bf
No known key found for this signature in database
GPG Key ID: F83510526D99E2C7
2 changed files with 6 additions and 1 deletions

View File

@ -1826,6 +1826,7 @@ class core_plugin_manager {
),
'communication' => [
'customlink',
'matrix',
],

View File

@ -29,7 +29,11 @@ use moodle_url;
*/
class communication extends base {
public static function get_manage_url(): moodle_url {
public static function get_manage_url(): ?moodle_url {
if (!\core_communication\api::is_available()) {
return null;
}
return new moodle_url('/admin/settings.php', ['section' => 'managecommunicationproviders']);
}