-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6d08986
commit 57b7b84
Showing
5 changed files
with
53 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
function xmldb_tool_sentry_upgrade($oldversion): bool { | ||
global $CFG, $DB; | ||
|
||
$dbman = $DB->get_manager(); // Loads ddl manager and xmldb classes. | ||
|
||
if ($oldversion < 2024071200) { | ||
$DB->delete_records("mdl_config_plugins",[ 'plugin'=>'tool_sentry','name'=>'dns']); | ||
} | ||
|
||
return true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,8 +34,8 @@ | |
get_string('options_desc', 'tool_sentry'))); | ||
$page->add(new admin_setting_configcheckbox('tool_sentry/activate', | ||
get_string('activate', 'tool_sentry'), get_string('activate_desc', 'tool_sentry'), 1)); | ||
$page->add(new admin_setting_configtext('tool_sentry/dns', get_string('dns', 'tool_sentry'), | ||
get_string('dns_desc', 'tool_sentry'), 'https://[email protected]/CLIENTCODE')); | ||
$page->add(new admin_setting_configtext('tool_sentry/dsn', get_string('dsn', 'tool_sentry'), | ||
get_string('dsn_desc', 'tool_sentry'), 'https://[email protected]/CLIENTCODE')); | ||
$page->add(new admin_setting_heading('tool_sentry/sentry_options', | ||
get_string('sentry_options', 'tool_sentry'), get_string('sentry_options_desc', 'tool_sentry'))); | ||
$page->add(new admin_setting_configtext('tool_sentry/release', get_string('release', 'tool_sentry'), | ||
|
@@ -111,3 +111,4 @@ | |
|
||
} | ||
} | ||
\tool_sentry\helper::geterros(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters