Skip to content

Commit

Permalink
Merge branch 'MDL-78619' of https://github.com/paulholden/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
HuongNV13 authored and junpataleta committed Sep 8, 2023
2 parents 090e40e + 65c0de3 commit cb5c8b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/classes/plugin_manager.php
Expand Up @@ -1826,6 +1826,7 @@ public static function standard_plugins_list($type) {
),

'communication' => [
'customlink',
'matrix',
],

Expand Down
6 changes: 5 additions & 1 deletion lib/classes/plugininfo/communication.php
Expand Up @@ -29,7 +29,11 @@
*/
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']);
}

Expand Down

0 comments on commit cb5c8b5

Please sign in to comment.