mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
16 lines
536 B
PHP
16 lines
536 B
PHP
<?php //$Id$
|
|
|
|
if (!defined('MOODLE_INTERNAL')) {
|
|
die('Direct access to this script is forbidden.'); // It must be included from a Moodle page
|
|
}
|
|
|
|
if (has_capability('coursereport/progress:view', $context)) {
|
|
$completion = new completion_info($course);
|
|
if ($completion->is_enabled()) {
|
|
echo '<p>';
|
|
echo '<a href="'.$CFG->wwwroot.'/course/report/progress/?course='.$course->id.'">'.get_string('completionreport','completion').'</a>';
|
|
echo '</p>';
|
|
}
|
|
}
|
|
?>
|