Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes related to the redesign of the Default activity completion page in Moodle 4.3 (MDL-78528) #4

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion mod_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@ class mod_turnitintooltwo_mod_form extends moodleform_mod {
private $turnitintooltwo;

public function definition() {
global $DB, $USER, $COURSE;
global $DB, $USER, $COURSE, $PAGE;

// Abort if output of page has begun as otherwise it will break page.
// This is most likely because of the redesign of the Default activity completion page in Moodle 4.3 (MDL-78528).
if ($PAGE->state > 0) {
return false;
}

// Module string is useful for product support.
$modulestring = '<!-- Turnitin Moodle Direct Version: '.turnitintooltwo_get_version().' - (';
Expand Down