From b3676b3f6305cd48367efd38a62342b232f23d2f Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Sat, 20 Feb 2016 18:06:15 +0800 Subject: [PATCH] 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. --- manage_templates.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manage_templates.php b/manage_templates.php index 67d7b51..b9b47aa 100644 --- a/manage_templates.php +++ b/manage_templates.php @@ -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();