diff --git a/classes/plagiarism_pchkorg_api_provider.php b/classes/plagiarism_pchkorg_api_provider.php index 8c32380..f9973c1 100644 --- a/classes/plagiarism_pchkorg_api_provider.php +++ b/classes/plagiarism_pchkorg_api_provider.php @@ -245,7 +245,10 @@ class plagiarism_pchkorg_api_provider { $eol = "\r\n"; $body = ''; + $body .= $this->get_part('language', 'en', $boundary); + $body .= $this->get_part('skip_english_words_validation', '1', $boundary); + $body .= $this->get_part('skip_percentage_words_validation', '1', $boundary); $body .= $this->get_file_part('text', $content, $mime, $filename, $boundary); $body .= '--' . $boundary . '--' . $eol; diff --git a/lib.php b/lib.php index 8568333..08d9de8 100644 --- a/lib.php +++ b/lib.php @@ -91,7 +91,7 @@ class plagiarism_plugin_pchkorg extends plagiarism_plugin { $link = sprintf(' ( %s ) ', $checkurl->__toString(), $label); } else { $label = get_string('pchkorg_check_for_plagiarism', 'plagiarism_pchkorg'); - $link = sprintf(' ( %s ) ', $checkurl->__toString(), $label); + $link = sprintf(' ( %s ) ', $checkurl->__toString(), $label); } return $link; diff --git a/version.php b/version.php index 67fc64b..b3db607 100644 --- a/version.php +++ b/version.php @@ -26,9 +26,9 @@ defined('MOODLE_INTERNAL') || die(); if (!isset($plugin)) { $plugin = new stdClass(); } -$plugin->version = 2019020601; +$plugin->version = 2019031401; $plugin->requires = 2017051501; // Requires Moodle 3.3 . -$plugin->release = 'v2.3'; +$plugin->release = 'v2.4'; $plugin->maturity = MATURITY_STABLE; $plugin->component = 'plagiarism_pchkorg';