summaryrefslogtreecommitdiff
path: root/settings.php
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-11-01 23:36:09 +0300
committerValentin Popov <info@valentineus.link>2018-11-02 00:07:14 +0300
commitd8f3a9f3edf66fad0af84a703e39e45911f37d85 (patch)
treefb73b9abcb557b7f86d026a1294315c958e79432 /settings.php
parentf9772b1fb97b81468793388ed8af3c06f4f3e279 (diff)
downloadlocal_webhooks-d8f3a9f3edf66fad0af84a703e39e45911f37d85.tar.xz
local_webhooks-d8f3a9f3edf66fad0af84a703e39e45911f37d85.zip
Formatting code and eliminating possible errors
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'settings.php')
-rw-r--r--settings.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/settings.php b/settings.php
index 9a79c13..4da9dba 100644
--- a/settings.php
+++ b/settings.php
@@ -24,9 +24,14 @@
defined('MOODLE_INTERNAL') || die();
+/** @var \admin_root $ADMIN */
+
if ($hassiteconfig) {
- $ADMIN->add("server", new admin_externalpage("local_webhooks",
- new lang_string("pluginname", "local_webhooks"),
- new moodle_url("/local/webhooks/index.php")
- ));
+ $ADMIN->add(
+ 'server', new admin_externalpage(
+ 'local_webhooks',
+ new lang_string('pluginname', 'local_webhooks'),
+ new moodle_url('/local/webhooks/index.php')
+ )
+ );
} \ No newline at end of file