Removed usages of deprecated function
This commit is contained in:
parent
516506e8f1
commit
60ba77d562
3 changed files with 4 additions and 4 deletions
2
view.php
2
view.php
|
@ -35,7 +35,7 @@ $customcert = $DB->get_record('customcert', array('id' => $cm->instance), '*', M
|
|||
|
||||
// Ensure the user is allowed to view this page.
|
||||
require_login($course, true, $cm);
|
||||
$context = get_context_instance(CONTEXT_MODULE, $cm->id);
|
||||
$context = context_module::instance($cm->id);
|
||||
require_capability('mod/customcert:view', $context);
|
||||
|
||||
// Initialise $PAGE.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue