summaryrefslogtreecommitdiff
path: root/managerservice.php
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-10-26 16:27:21 +0300
committerValentin Popov <info@valentineus.link>2017-10-26 16:30:02 +0300
commit3816d4128ca395958bdccde07a0e1b800c652776 (patch)
tree4fe89327dc011dbe8e5920e482ab49acf8918f59 /managerservice.php
parentfdaa591882e4df99696e6e90bb6f89f8cdc14e57 (diff)
downloadlocal_webhooks-3816d4128ca395958bdccde07a0e1b800c652776.tar.xz
local_webhooks-3816d4128ca395958bdccde07a0e1b800c652776.zip
Minor corrections
Diffstat (limited to 'managerservice.php')
-rw-r--r--managerservice.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/managerservice.php b/managerservice.php
index 02020c8..514b4af 100644
--- a/managerservice.php
+++ b/managerservice.php
@@ -43,7 +43,7 @@ $PAGE->set_context($context);
/* Delete the service */
if (boolval($deleteid) && confirm_sesskey()) {
$DB->delete_records("local_webhooks_service", array("id" => $deleteid));
- redirect($PAGE->url, new lang_string("deleted", "moodle"));
+ redirect($PAGE->url, new lang_string("eventwebserviceservicedeleted", "webservice"));
}
/* Retrieving a list of services */
@@ -56,7 +56,7 @@ if (boolval($hideshowid) && confirm_sesskey()) {
if (!empty($callback)) {
$callback->enable = !boolval($callback->enable);
$DB->update_record("local_webhooks_service", $callback);
- redirect($PAGE->url, new lang_string("updatinga", "moodle", $callback->title));
+ redirect($PAGE->url, new lang_string("eventwebserviceserviceupdated", "webservice"));
}
}
@@ -99,7 +99,7 @@ foreach ($callbacks as $callback) {
$hideshowitem = $OUTPUT->action_icon($hideshowlink, new pix_icon($hideshowicon, $hideshowstring));
/* Link for editing */
- $editlink = new moodle_url($editservice, array("idservice" => $callback->id));
+ $editlink = new moodle_url($editservice, array("serviceid" => $callback->id));
$edititem = $OUTPUT->action_icon($editlink, new pix_icon("t/edit", new lang_string("edit", "moodle")));
/* Link to remove */