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:
Mark Nelson 2016-02-20 18:06:15 +08:00
parent 6889b04df0
commit b3676b3f63

View file

@ -110,6 +110,6 @@ if (isset($table)) {
} else {
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->footer();