Skip to content

Commit

Permalink
Merge branch 'mark-as-done-button-for-V311' into 'testing4'
Browse files Browse the repository at this point in the history
make mark as don button compatible with 3.11

See merge request moodle_l2p/moodle-mod_pdfannotator!214
  • Loading branch information
Anisa Kusumadewi committed Apr 19, 2023
2 parents 4e51945 + 12a9e39 commit 83860ec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
12 changes: 8 additions & 4 deletions view.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,15 @@

// Display course name, navigation bar at the very top and "Dashboard->...->..." bar.
echo $OUTPUT->header();

// Render the activity information.
$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);
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');

Expand Down

0 comments on commit 83860ec

Please sign in to comment.