From c1ac1b9e43b6f68b1c426139cab05af12d083ab3 Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Thu, 25 Aug 2016 12:11:38 +0800 Subject: [PATCH] Uncapitalised usage of the 'context_system' class --- edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edit.php b/edit.php index a5afb53..248c21e 100644 --- a/edit.php +++ b/edit.php @@ -67,7 +67,7 @@ if ($context->contextlevel == CONTEXT_SYSTEM) { } // The form for loading a customcert templates. -if ($tid && $DB->count_records('customcert_templates', array('contextid' => CONTEXT_SYSTEM::instance()->id)) > 0) { +if ($tid && $DB->count_records('customcert_templates', array('contextid' => context_system::instance()->id)) > 0) { $loadtemplateurl = new moodle_url('/mod/customcert/load_template.php', array('tid' => $tid)); $loadtemplateform = new \mod_customcert\load_template_form($loadtemplateurl); }