Skip to content

Commit 8ad5720

Browse files
committed
Fix: update_status() is deprecated
With debugging enabled, a plagiarism plugin installed, and $CFG->enableplagiarism = 1 a teacher would see the following message at the top of mod/coursework/view.php?id=<ID>: plagiarism_plugin::update_status() is deprecated. Use plagiarism_turnitin_before_standard_top_of_body_html() instead The call to plagiarism_update_status() has been removed. As far as I can see this had no effect on this page when plagiarism_turnitin was installed except to include a hidden "We’ve noticed high latency in your connection ..." message.
1 parent 20dfee6 commit 8ad5720

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

view.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -462,17 +462,6 @@
462462
*/
463463
$page_renderer = $PAGE->get_renderer('mod_coursework', 'page');
464464

465-
// Hook to allow plagiarism plugins to update status/print links.
466-
$loginlink = plagiarism_update_status($course, $course_module);
467-
468-
// Only show the 'login to Turnitin as teacher' link to actual teachers.
469-
// TODO probably more capabilities need this
470-
if (has_any_capability(array('mod/coursework:addinitialgrade',
471-
'mod/coursework:addagreedgrade'),
472-
$coursework->get_context())) {
473-
$html .= $loginlink;
474-
}
475-
476465
$html .= $object_renderer->render(new mod_coursework_coursework($coursework));
477466

478467
// Allow tutors to upload files as part of the coursework task? Easily done via the main

0 commit comments

Comments
 (0)