Skip to content

Commit 83860ec

Browse files
author
Anisa Kusumadewi
committed
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
2 parents 4e51945 + 12a9e39 commit 83860ec

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
defined('MOODLE_INTERNAL') || die();
2626

2727
$plugin->component = 'mod_pdfannotator';
28-
$plugin->version = 2023041400;
28+
$plugin->version = 2023041900;
2929
$plugin->release = 'PDF Annotator v1.5 release 3';
3030
$plugin->requires = 2021051700;
3131
$plugin->maturity = MATURITY_STABLE;

view.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,15 @@
7676

7777
// Display course name, navigation bar at the very top and "Dashboard->...->..." bar.
7878
echo $OUTPUT->header();
79+
7980
// Render the activity information.
80-
$modinfo = get_fast_modinfo($course);
81-
$cminfo = $modinfo->get_cm($cm->id);
82-
$completiondetails = \core_completion\cm_completion_details::get_instance($cminfo, $USER->id);
83-
$activitydates = \core\activity_dates::get_dates_for_module($cminfo, $USER->id);
81+
if ($CFG->version < 2022041900) {
82+
$modinfo = get_fast_modinfo($course);
83+
$cminfo = $modinfo->get_cm($cm->id);
84+
$completiondetails = \core_completion\cm_completion_details::get_instance($cminfo, $USER->id);
85+
$activitydates = \core\activity_dates::get_dates_for_module($cminfo, $USER->id);
86+
echo $OUTPUT->activity_information($cminfo, $completiondetails, $activitydates);
87+
}
8488

8589
require_once($CFG->dirroot . '/mod/pdfannotator/controller.php');
8690

0 commit comments

Comments
 (0)