Add Support for 4.1, 4.2

This commit is contained in:
Jane Adelmann 2023-06-06 19:04:59 +03:00
parent a46f7043e5
commit 45634d8a3e
No known key found for this signature in database
GPG Key ID: 4CCF39DF30B8AF72
1 changed files with 4 additions and 1 deletions

View File

@ -55,7 +55,10 @@ if (($data = $mform->get_data()) && confirm_sesskey()) {
foreach ($data as $field => $value) {
if (strpos($field, 'pchkorg') === 0) {
set_config($field, $value, 'plagiarism');
if ('pchkorg_use' === $field) {
set_config('enabled', $value, 'plagiarism_pchkorg');
}
set_config($field, $value, 'plagiarism_pchkorg');
$pchkorgconfigmodel->set_system_config($field, $value);
}
}