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. "3a041e6d352ebd6a55ca457ece5cb1c34b72f385" and "917a886c8806f30afde200acf87252cfccc88989" have entirely different histories.

2 changed files with 3 additions and 11 deletions

10
lib.php
View File

@ -412,15 +412,7 @@ class plagiarism_plugin_pchkorg extends plagiarism_plugin {
$where = new \stdClass();
$where->cm = $cmid;
if ($file === null) {
if (!array_key_exists('content', $linkarray) && $component == 'qtype_essay' && !empty($linkarray['area'])) {
$questions = question_engine::load_questions_usage_by_activity($linkarray['area']);
$attempt = $questions->get_question_attempt($linkarray['itemid']);
$response = $attempt->get_response_summary();
$signature = sha1($response);
} else {
$signature = sha1($linkarray['content']);
}
$where->signature = $signature;
$where->signature = sha1($linkarray['content']);
$where->fileid = null;
} else {
$where->fileid = $file->get_id();

View File

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