Skip to content

Commit ea650af

Browse files
authored
Merge pull request #435 from turnitin/develop
Fix for upgrade
2 parents 5d917d7 + 3712ed2 commit ea650af

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ If you are having issues, please consult our [TROUBLE SHOOTING](https://github.c
1212
Installation
1313
------------
1414

15-
Before installing this plugin firstly make sure you are logged in as an Administrator and that you are using Moodle 2.7 or higher.
15+
Before installing this plugin firstly make sure you are logged in as an Administrator and that you are using Moodle 3.1 or higher.
1616

1717
The Plagiarism Plugin can be used within the following Moodle modules:
1818

@@ -24,6 +24,6 @@ To install, you need to copy all the files into the plagiarism/turnitin director
2424

2525
Plagiarism plugins also need to be enabled before this plugin can be used. You can do this by going to `"Site Administration" > "Advanced Features"` and ticking the "Enable plagiarism plugins" box before saving.
2626

27-
The Plagiarism Plugin will inherit connection settings from the turnitintooltwo module, but you can set default values and whether the plugin is enabled within Moodle modules by going to `"Site Administration" > "Plugins" > "Plagiarism prevention" > "Turnitin plagiarism plugin"`.
27+
You can set default values and whether the plugin is enabled within Moodle modules by going to `"Site Administration" > "Plugins" > "Plagiarism prevention" > "Turnitin plagiarism plugin"`.
2828

2929
To create/update assignments, process submissions and update grades your moodle environment will need to have cron job running regularly. For information on how to do this please consult http://docs.moodle.org/26/en/Cron.

db/upgrade.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222
defined('MOODLE_INTERNAL') || die();
2323

24+
require_once($CFG->dirroot.'/plagiarism/turnitin/lib.php');
25+
2426
/**
2527
* @global moodle_database $DB
2628
* @param int $oldversion
@@ -292,7 +294,7 @@ function xmldb_plagiarism_turnitin_upgrade($oldversion) {
292294
// If V2 is installed, copy the settings across to PP.
293295
if ($DB->get_record('config_plugins', array('plugin' => 'mod_turnitintooltwo'))) {
294296
// Get the settings for the V2 plugin.
295-
$data = turnitintooltwo_admin_config();
297+
$data = get_config('turnitintooltwo');
296298

297299
$properties = array("accountid", "secretkey", "apiurl", "enablediagnostic", "usegrademark",
298300
"enablepeermark", "useerater", "transmatch", "repositoryoption", "agreement", "enablepseudo", "pseudofirstname",

0 commit comments

Comments
 (0)