mirror of
https://github.com/PlagiarismCheck/moodle-plagiarism_pchkorg.git
synced 2024-12-22 04:10:07 +00:00
Display widget in quiz. Version 3.15.2
This commit is contained in:
parent
917a886c88
commit
8668922d72
10
lib.php
10
lib.php
@ -412,7 +412,15 @@ class plagiarism_plugin_pchkorg extends plagiarism_plugin {
|
|||||||
$where = new \stdClass();
|
$where = new \stdClass();
|
||||||
$where->cm = $cmid;
|
$where->cm = $cmid;
|
||||||
if ($file === null) {
|
if ($file === null) {
|
||||||
$where->signature = sha1($linkarray['content']);
|
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->fileid = null;
|
$where->fileid = null;
|
||||||
} else {
|
} else {
|
||||||
$where->fileid = $file->get_id();
|
$where->fileid = $file->get_id();
|
||||||
|
@ -26,9 +26,9 @@ defined('MOODLE_INTERNAL') || die();
|
|||||||
if (!isset($plugin)) {
|
if (!isset($plugin)) {
|
||||||
$plugin = new stdClass();
|
$plugin = new stdClass();
|
||||||
}
|
}
|
||||||
$plugin->version = 2024072918;
|
$plugin->version = 2024100719;
|
||||||
$plugin->requires = 2020061501; // Requires Moodle 3.9 .
|
$plugin->requires = 2020061501; // Requires Moodle 3.9 .
|
||||||
$plugin->release = 'v3.15.1';
|
$plugin->release = 'v3.15.2';
|
||||||
$plugin->component = 'plagiarism_pchkorg';
|
$plugin->component = 'plagiarism_pchkorg';
|
||||||
$plugin->maturity = MATURITY_STABLE;
|
$plugin->maturity = MATURITY_STABLE;
|
||||||
$plugin->dependencies = array(
|
$plugin->dependencies = array(
|
||||||
|
Loading…
Reference in New Issue
Block a user