From 016b0e58291ce2cc0259b55975d21c6e1b4ab7ad Mon Sep 17 00:00:00 2001 From: Jane Adelmann Date: Thu, 14 Mar 2019 16:40:09 +0200 Subject: [PATCH] version 2.4 Skip 2 warnings validation --- classes/plagiarism_pchkorg_api_provider.php | 3 +++ lib.php | 2 +- version.php | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) 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';