diff options
author | Valentin Popov <info@valentineus.link> | 2020-04-14 12:32:14 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-04-14 12:32:14 +0300 |
commit | 3f74278add2e71d25453d33770c03ea0142762ad (patch) | |
tree | af012fcb724f5998b952971a0ef2094d7f5450bd | |
parent | 4e64c0bcd2b5a88918b2f1a5d46c424bb53f0890 (diff) | |
download | local_webhooks-3.0.4.tar.xz local_webhooks-3.0.4.zip |
Bump 3.0.4 versionv3.0.4
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r-- | classes/service_form.php | 12 | ||||
-rw-r--r-- | version.php | 6 |
2 files changed, 11 insertions, 7 deletions
diff --git a/classes/service_form.php b/classes/service_form.php index 1299885..b23cad3 100644 --- a/classes/service_form.php +++ b/classes/service_form.php @@ -67,7 +67,7 @@ class service_edit_form extends moodleform { */ protected function definition() { $mform =& $this->_form; - $size = [ 'size' => 60 ]; + $size = ['size' => 60]; /* Form heading */ $mform->addElement('header', 'editserviceheader', new lang_string('service', 'webservice')); @@ -98,7 +98,11 @@ class service_edit_form extends moodleform { $mform->setAdvanced('other'); /* Content type */ - $contenttype = [ 'json' => 'application/json', 'x-www-form-urlencoded' => 'application/x-www-form-urlencoded' ]; + $contenttype = [ + 'json' => 'application/json', + 'x-www-form-urlencoded' => 'application/x-www-form-urlencoded', + ]; + $mform->addElement('select', 'type', 'Content type', $contenttype); $mform->setAdvanced('type'); @@ -112,8 +116,8 @@ class service_edit_form extends moodleform { /* Formation of the list of elements */ foreach ($eventlist as $event) { /* Escaping event names */ - $eventname = base64_encode($event[ 'eventname' ]); - $events[ $event[ 'component' ] ][] =& $mform->createElement('checkbox', $eventname, $event[ 'eventname' ], $event[ 'eventname' ]); + $eventname = base64_encode($event['eventname']); + $events[$event['component']][] =& $mform->createElement('checkbox', $eventname, $event['eventname']); } /* Displays groups of items */ diff --git a/version.php b/version.php index 7461b38..aaf1817 100644 --- a/version.php +++ b/version.php @@ -26,6 +26,6 @@ defined('MOODLE_INTERNAL') || die(); $plugin->component = 'local_webhooks'; $plugin->maturity = MATURITY_STABLE; -$plugin->release = '3.0.3 (Build: 2019021700)'; -$plugin->requires = 2016112900; -$plugin->version = 2018061920; +$plugin->release = '3.0.4 (Build: 2020041400)'; +$plugin->requires = 2019111800.00; +$plugin->version = 2020041400; |