Uncapitalised usages of the 'context_*' classes
This commit is contained in:
parent
c1ac1b9e43
commit
88b7a7839b
3 changed files with 3 additions and 3 deletions
|
@ -41,7 +41,7 @@ class load_template_form extends \moodleform {
|
|||
$mform->addElement('header', 'loadtemplateheader', get_string('loadtemplate', 'customcert'));
|
||||
|
||||
$templates = $DB->get_records_menu('customcert_templates',
|
||||
array('contextid' => \CONTEXT_SYSTEM::instance()->id), 'name ASC', 'id, name');
|
||||
array('contextid' => \context_system::instance()->id), 'name ASC', 'id, name');
|
||||
|
||||
$group = array();
|
||||
$group[] = $mform->createElement('select', 'ltid', '', $templates);
|
||||
|
|
|
@ -33,7 +33,7 @@ require_login($course);
|
|||
|
||||
// Set up the page variables.
|
||||
$pageurl = new moodle_url('/mod/customcert/index.php', array('id' => $course->id));
|
||||
\mod_customcert\page_helper::page_setup($pageurl, CONTEXT_COURSE::instance($id),
|
||||
\mod_customcert\page_helper::page_setup($pageurl, context_course::instance($id),
|
||||
get_string('modulenameplural', 'customcert'));
|
||||
|
||||
// Additional page setup needed.
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
require_once('../../config.php');
|
||||
|
||||
$contextid = optional_param('contextid', CONTEXT_SYSTEM::instance()->id, PARAM_INT);
|
||||
$contextid = optional_param('contextid', context_system::instance()->id, PARAM_INT);
|
||||
$action = optional_param('action', '', PARAM_ALPHA);
|
||||
$confirm = optional_param('confirm', 0, PARAM_INT);
|
||||
|
||||
|
|
Loading…
Reference in a new issue