Uncapitalised usages of the 'context_*' classes

This commit is contained in:
Mark Nelson 2016-08-25 17:04:10 +08:00
parent 9a42872c22
commit 56c1af1b84
3 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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.

View file

@ -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);