summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--classes/webhooks_table.php4
-rw-r--r--index.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/classes/webhooks_table.php b/classes/webhooks_table.php
index fdf015e..9598e8d 100644
--- a/classes/webhooks_table.php
+++ b/classes/webhooks_table.php
@@ -110,7 +110,7 @@ class local_webhooks_table extends table_sql {
$hideshowlink = new moodle_url(self::$manager, array("hideshowid" => $row->id, "sesskey" => sesskey()));
$hideshowitem = $OUTPUT->action_icon($hideshowlink, new pix_icon($hideshowicon, $hideshowstring));
- $editlink = new moodle_url(self::$editor, array("serviceid" => $row->id));
+ $editlink = new moodle_url(self::$editor, array("serviceid" => $row->id, "sesskey" => sesskey()));
$edititem = $OUTPUT->action_icon($editlink, new pix_icon("t/edit", new lang_string("edit", "moodle")));
$deletelink = new moodle_url(self::$manager, array("deleteid" => $row->id, "sesskey" => sesskey()));
@@ -138,7 +138,7 @@ class local_webhooks_table extends table_sql {
* @return string Displayed data.
*/
public function col_title($row) {
- $link = new moodle_url(self::$editor, array("serviceid" => $row->id));
+ $link = new moodle_url(self::$editor, array("serviceid" => $row->id, "sesskey" => sesskey()));
$html = html_writer::link($link, $row->title);
return $html;
}
diff --git a/index.php b/index.php
index f223849..75f3a8e 100644
--- a/index.php
+++ b/index.php
@@ -76,7 +76,7 @@ $PAGE->set_title($titlepage);
echo $OUTPUT->header();
/* Adds the add button */
-$addserviceurl = new moodle_url($editservice);
+$addserviceurl = new moodle_url($editservice, array("sesskey" => sesskey()));
echo $OUTPUT->single_button($addserviceurl, new lang_string("add", "moodle"));
/* Adds a delete button */