Skip to content

Commit 4b54c09

Browse files
authored
Merge pull request #386 from turnitin/develop
Develop to master for release 2018102901
2 parents 104e048 + 50a0e06 commit 4b54c09

File tree

4 files changed

+25
-4
lines changed

4 files changed

+25
-4
lines changed

CHANGELOG.md

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
### Date: 2018-October-29
2+
### Release: v2018082802
3+
4+
### :wrench: Fixes and enhancements
5+
6+
---
7+
8+
#### We've fixed a bug that prevented users from being able to accept the EULA
9+
10+
On Friday 26th October, we released a plugin update that unexpectedly prevented new users from being able to accept the EULA in the Plagiarism Plugin, and were subsequently unable to submit to Turnitin. If you've updated your plugin since Friday, we're kindly requesting that you update again to resolve this bug.
11+
12+
---
13+
114
### Date: 2018-August-28
215
### Release: v2018082802
316

classes/digitalreceipt/pp_receipt_message.php

+9-1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ public function build_message($input) {
9292
* @return string
9393
*/
9494
public function build_instructor_message($input) {
95+
$message = new stdClass();
9596
$message->submission_title = $input['submission_title'];
9697
$message->assignment_name = $input['assignment_name'];
9798
if ( isset($input['assignment_part']) ) {
@@ -114,9 +115,16 @@ public function build_instructor_message($input) {
114115
* @return void
115116
*/
116117
public function send_instructor_message($instructors, $message) {
118+
global $CFG;
117119
$subject = get_string('receipt_instructor_copy_subject', 'plagiarism_turnitin');
118120

119-
$eventdata = new stdClass();
121+
// Pre 2.9 does not have \core\message\message()
122+
if ($CFG->branch >= 29) {
123+
$eventdata = new \core\message\message();
124+
} else {
125+
$eventdata = new stdClass();
126+
}
127+
120128
$eventdata->component = 'plagiarism_turnitin'; // Your component name.
121129
$eventdata->name = 'submission'; // This is the message name from messages.php.
122130
$eventdata->userfrom = \core_user::get_noreply_user();

lib.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ public function load_page_components() {
551551

552552
$jsurl = new moodle_url($CFG->wwwroot.'/plagiarism/turnitin/jquery/jquery-3.3.1.min.js');
553553
$PAGE->requires->js($jsurl);
554-
$jsurl = new moodle_url($CFG->wwwroot.'/mod/turnitintooltwo/jquery/turnitintooltwo-2018082301.min.js');
554+
$jsurl = new moodle_url($CFG->wwwroot.'/mod/turnitintooltwo/jquery/turnitintooltwo-2018102601.min.js');
555555
$PAGE->requires->js($jsurl);
556556
if ($CFG->branch > 29) {
557557
$jsurl = new moodle_url($CFG->wwwroot.'/plagiarism/turnitin/jquery/turnitin_module_post29.js');

version.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* @copyright 2012 iParadigms LLC
2020
*/
2121

22-
$plugin->version = 2018082802;
22+
$plugin->version = 2018102901;
2323
$plugin->release = "2.7+";
2424
$plugin->requires = 2014051200;
2525
$plugin->component = 'plagiarism_turnitin';
@@ -32,6 +32,6 @@
3232
}
3333

3434
$plugin->dependencies = array(
35-
'mod_turnitintooltwo' => 2018082801,
35+
'mod_turnitintooltwo' => 2018102601,
3636
'mod_assign' => 2013110500
3737
);

0 commit comments

Comments
 (0)