aboutsummaryrefslogtreecommitdiff
path: root/classes/webhooks_table.php
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-01-04 14:38:55 +0300
committerValentin Popov <info@valentineus.link>2018-01-04 14:38:55 +0300
commitfa74622268f0ec1e79563e1df5dd6100a5c6c9b8 (patch)
treeca2aa9400448e9581374a0ee7d2f586d0aa73284 /classes/webhooks_table.php
parent9b7426fb20543f88a9cf826a49d298701b0df329 (diff)
downloadlocal_webhooks-fa74622268f0ec1e79563e1df5dd6100a5c6c9b8.tar.xz
local_webhooks-fa74622268f0ec1e79563e1df5dd6100a5c6c9b8.zip
Links to the editor contain sesskey
Diffstat (limited to 'classes/webhooks_table.php')
-rw-r--r--classes/webhooks_table.php4
1 files changed, 2 insertions, 2 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;
}