We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e506f9e commit 627912aCopy full SHA for 627912a
mod_form.php
@@ -34,7 +34,13 @@ class mod_turnitintooltwo_mod_form extends moodleform_mod {
34
private $turnitintooltwo;
35
36
public function definition() {
37
- global $DB, $USER, $COURSE;
+ global $DB, $USER, $COURSE, $PAGE;
38
+
39
+ // Abort if output of page has begun as otherwise it will break page.
40
+ // This is most likely because of the redesign of the Default activity completion page in Moodle 4.3 (MDL-78528).
41
+ if ($PAGE->state > 0) {
42
+ return false;
43
+ }
44
45
// Module string is useful for product support.
46
$modulestring = '<!-- Turnitin Moodle Direct Version: '.turnitintooltwo_get_version().' - (';
0 commit comments