1
0
mirror of https://github.com/PlagiarismCheck/moodle-plagiarism_pchkorg.git synced 2024-12-22 04:10:07 +00:00

Fix global settings

This commit is contained in:
Jane Adelmann 2024-10-28 19:27:51 +02:00
parent c1db1f2fc7
commit 2cdec1dc95
No known key found for this signature in database
GPG Key ID: 4CCF39DF30B8AF72
2 changed files with 5 additions and 4 deletions

View File

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

View File

@ -26,9 +26,9 @@ defined('MOODLE_INTERNAL') || die();
if (!isset($plugin)) { if (!isset($plugin)) {
$plugin = new stdClass(); $plugin = new stdClass();
} }
$plugin->version = 2024102818; $plugin->version = 2024102819;
$plugin->requires = 2020061501; // Requires Moodle 3.9 . $plugin->requires = 2020061501; // Requires Moodle 3.9 .
$plugin->release = 'v3.15.5'; $plugin->release = 'v3.15.6';
$plugin->component = 'plagiarism_pchkorg'; $plugin->component = 'plagiarism_pchkorg';
$plugin->maturity = MATURITY_STABLE; $plugin->maturity = MATURITY_STABLE;
$plugin->dependencies = array( $plugin->dependencies = array(