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

Compare commits

..

No commits in common. "2cdec1dc95eb1cd4ed8d61516bb236975ca6c247" and "3a041e6d352ebd6a55ca457ece5cb1c34b72f385" have entirely different histories.

4 changed files with 3 additions and 25 deletions

View File

@ -88,23 +88,5 @@ function xmldb_plagiarism_pchkorg_upgrade($oldversion) {
upgrade_plugin_savepoint(true, 2024072918, 'plagiarism', 'pchkorg');
}
if ($oldversion < 2024102818) {
$configs = get_config('plagiarism');
foreach ($configs as $field => $value) {
if (strpos($field, 'pchkorg') === 0) {
if ($field === 'pchkorg_use') {
$DB->delete_records('config_plugins', ['name' => $field, 'plugin' => 'plagiarism']);
$field = 'enabled';
}
set_config($field, $value, 'plagiarism_pchkorg');
}
}
upgrade_plugin_savepoint(true, 2024102818, 'plagiarism', 'pchkorg');
}
return true;
}

View File

@ -237,9 +237,6 @@ function plagiarism_pchkorg_coursemodule_edit_post_actions($data, $course)
foreach ($records as $record) {
if ($record->name === $field) {
$isfounded = true;
if (!isset($data->{$record->name}) || $data->{$record->name} === null) {
$data->{$record->name} = 0;
}
if ($field === 'pchkorg_min_percent' && !$canchangeminpercent) {
$DB->delete_records('plagiarism_pchkorg_config', array('id' => $record->id));
break;

View File

@ -57,9 +57,8 @@ if (($data = $mform->get_data()) && confirm_sesskey()) {
if (strpos($field, 'pchkorg') === 0) {
if ('pchkorg_use' === $field) {
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);
}
}

View File

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