diff --git a/mod/lti/locallib.php b/mod/lti/locallib.php
index 8c9a3ef4d5b..17666596baf 100644
--- a/mod/lti/locallib.php
+++ b/mod/lti/locallib.php
@@ -357,11 +357,16 @@ function lti_get_tool_table($tools, $id) {
$update = get_string('update', 'lti');
$delete = get_string('delete', 'lti');
- $accepthtml = "
- wwwroot}/mod/lti/typessettings.php?action=accept&id={$type->id}&sesskey={$USER->sesskey}&tab={$id}\" title=\"{$accept}\">
- wwwroot}/pix/t/clear.gif\"/>
-
- ";
+ $baseurl = new moodle_url('/mod/lti/typessettings.php', array(
+ 'action' => 'accept',
+ 'id' => $type->id,
+ 'sesskey' => sesskey(),
+ 'tab' => $id
+ ));
+
+ $accepthtml = $OUTPUT->action_icon($baseurl,
+ new pix_icon('t/check', $accept, '', array('class' => 'iconsmall')), null,
+ array('title' => $accept, 'class' => 'editing_accept'));
$deleteaction = 'delete';
@@ -374,6 +379,17 @@ function lti_get_tool_table($tools, $id) {
$delete = get_string('reject', 'lti');
}
+ $updateurl = clone($baseurl);
+ $updateurl->param('action', 'update');
+ $updatehtml = $OUTPUT->action_icon($updateurl,
+ new pix_icon('t/edit', $accept, '', array('class' => 'iconsmall')), null,
+ array('title' => $update, 'class' => 'editing_update'));
+
+ $deleteurl = clone($baseurl);
+ $deleteurl->param('action', $deleteaction);
+ $deletehtml = $OUTPUT->action_icon($deleteurl,
+ new pix_icon('t/delete', $accept, '', array('class' => 'iconsmall')), null,
+ array('title' => $delete, 'class' => 'editing_delete'));
$html .= "