Skip to content
Snippets Groups Projects
Commit 83860ecf authored by Anisa Kusumadewi's avatar Anisa Kusumadewi
Browse files

Merge branch 'mark-as-done-button-for-V311' into 'testing4'

make mark as don button compatible with 3.11

See merge request moodle_l2p/moodle-mod_pdfannotator!214
parents 4e519455 12a9e396
Branches
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@
defined('MOODLE_INTERNAL') || die();
$plugin->component = 'mod_pdfannotator';
$plugin->version = 2023041400;
$plugin->version = 2023041900;
$plugin->release = 'PDF Annotator v1.5 release 3';
$plugin->requires = 2021051700;
$plugin->maturity = MATURITY_STABLE;
......@@ -76,11 +76,15 @@ $PAGE->set_heading($course->fullname);
// Display course name, navigation bar at the very top and "Dashboard->...->..." bar.
echo $OUTPUT->header();
// Render the activity information.
if ($CFG->version < 2022041900) {
$modinfo = get_fast_modinfo($course);
$cminfo = $modinfo->get_cm($cm->id);
$completiondetails = \core_completion\cm_completion_details::get_instance($cminfo, $USER->id);
$activitydates = \core\activity_dates::get_dates_for_module($cminfo, $USER->id);
echo $OUTPUT->activity_information($cminfo, $completiondetails, $activitydates);
}
require_once($CFG->dirroot . '/mod/pdfannotator/controller.php');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment