view.php 287 B

12345678
  1. <?php
  2. require('../../config.php');
  3. require_once('lib.php');
  4. $id = required_param('id', PARAM_INT);
  5. list ($course, $cm) = get_course_and_cm_from_cmid($id, 'certificate');
  6. $certificate = $DB->get_record('certificate', array('id'=> $cm->instance), '*', MUST_EXIST);
  7. ?>