mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Merge branch 'MDL-71161-master-4' of git://github.com/junpataleta/moodle
This commit is contained in:
commit
83b71194cd
25 changed files with 586 additions and 10 deletions
|
@ -46,6 +46,7 @@ if (!empty($id)) {
|
|||
} else {
|
||||
print_error('invalidid', 'glossary');
|
||||
}
|
||||
$cm = cm_info::create($cm);
|
||||
|
||||
require_course_login($course->id, true, $cm);
|
||||
$context = context_module::instance($cm->id);
|
||||
|
@ -298,6 +299,11 @@ if ($tab == GLOSSARY_APPROVAL_VIEW) {
|
|||
}
|
||||
echo $OUTPUT->heading(format_string($glossary->name), 2);
|
||||
|
||||
// Render the activity information.
|
||||
$completiondetails = \core_completion\cm_completion_details::get_instance($cm, $USER->id);
|
||||
$activitydates = \core\activity_dates::get_dates_for_module($cm, $USER->id);
|
||||
echo $OUTPUT->activity_information($cm, $completiondetails, $activitydates);
|
||||
|
||||
/// All this depends if whe have $showcommonelements
|
||||
if ($showcommonelements) {
|
||||
/// To calculate available options
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue