File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 2525defined ('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 ;
Original file line number Diff line number Diff line change 7676
7777// Display course name, navigation bar at the very top and "Dashboard->...->..." bar.
7878echo $ 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
8589require_once ($ CFG ->dirroot . '/mod/pdfannotator/controller.php ' );
8690
You can’t perform that action at this time.
0 commit comments