Removed unnecessary action variable from URL
This was breaking due to the changes in the last commit as a variable 'aid' is required if the 'action' variable is passed to the script.
This commit is contained in:
parent
6889b04df0
commit
b3676b3f63
|
@ -110,6 +110,6 @@ if (isset($table)) {
|
||||||
} else {
|
} else {
|
||||||
echo html_writer::tag('div', get_string('notemplates', 'customcert'), array('class' => 'alert'));
|
echo html_writer::tag('div', get_string('notemplates', 'customcert'), array('class' => 'alert'));
|
||||||
}
|
}
|
||||||
$url = new moodle_url('/mod/customcert/edit.php?action=add&contextid=' . $contextid);
|
$url = new moodle_url('/mod/customcert/edit.php?contextid=' . $contextid);
|
||||||
echo $OUTPUT->single_button($url, get_string('createtemplate', 'customcert'), 'get');
|
echo $OUTPUT->single_button($url, get_string('createtemplate', 'customcert'), 'get');
|
||||||
echo $OUTPUT->footer();
|
echo $OUTPUT->footer();
|
||||||
|
|
Loading…
Reference in a new issue