#134 Do not load templates in site templates
This commit is contained in:
parent
f8d7781158
commit
3461c9585d
1 changed files with 1 additions and 1 deletions
2
edit.php
2
edit.php
|
@ -232,7 +232,7 @@ if ($data = $mform->get_data()) {
|
|||
echo $OUTPUT->header();
|
||||
echo $OUTPUT->heading(get_string('editcustomcert', 'customcert'));
|
||||
$mform->display();
|
||||
if ($tid) {
|
||||
if ($tid && $context->contextlevel == CONTEXT_MODULE) {
|
||||
$loadtemplateurl = new moodle_url('/mod/customcert/load_template.php', array('tid' => $tid));
|
||||
$loadtemplateform = new \mod_customcert\load_template_form($loadtemplateurl, array('context' => $context), 'post',
|
||||
'', array('id' => 'loadtemplateform'));
|
||||
|
|
Loading…
Reference in a new issue