mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-65518 badges: Admin settings warning
If the backpack is changed to Open Badges V2 backpack, attempt the authenticate with the site settings and return a warning if it fails.
This commit is contained in:
parent
5c159cb309
commit
d48a52ddb1
5 changed files with 47 additions and 2 deletions
|
@ -105,6 +105,13 @@ if (($hassiteconfig || has_any_capability(array(
|
|||
new lang_string('sitebackpack_help', 'badges'),
|
||||
1, $choices));
|
||||
|
||||
$warning = badges_verify_site_backpack();
|
||||
if (!empty($warning)) {
|
||||
$backpacksettings->add(new admin_setting_description('badges_site_backpack_verify',
|
||||
new lang_string('sitebackpackverify', 'badges'),
|
||||
$warning));
|
||||
}
|
||||
|
||||
$ADMIN->add('badges', $backpacksettings);
|
||||
|
||||
$ADMIN->add('badges',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue