summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-11-15 09:49:36 +0300
committerValentin Popov <info@valentineus.link>2017-11-15 09:49:36 +0300
commit35358ea7cc11a80f285cca6dca3e3ec668e0fb97 (patch)
tree1cce1fa8f7fd37f70b2253c6cbf4dfef308a1166
parent97296b795a2346c1ee09fcf7f4abacc934af43ba (diff)
downloadlocal_webhooks-35358ea7cc11a80f285cca6dca3e3ec668e0fb97.tar.xz
local_webhooks-35358ea7cc11a80f285cca6dca3e3ec668e0fb97.zip
Updating pages for a new section
-rw-r--r--editservice.php3
-rw-r--r--managerservice.php3
2 files changed, 2 insertions, 4 deletions
diff --git a/editservice.php b/editservice.php
index 3c57507..a997928 100644
--- a/editservice.php
+++ b/editservice.php
@@ -26,7 +26,7 @@ require_once(__DIR__ . "/../../config.php");
require_once(__DIR__ . "/classes/editform.php");
require_once($CFG->libdir . "/adminlib.php");
-admin_externalpage_setup("managelocalplugins");
+admin_externalpage_setup("pluginsoverview");
$serviceid = optional_param("serviceid", 0, PARAM_INT);
@@ -82,7 +82,6 @@ $PAGE->set_heading($titlepage);
$PAGE->set_title($titlepage);
/* The page title */
-$PAGE->navbar->add(new lang_string("pluginname", "local_webhooks"), new moodle_url("/admin/settings.php", array("section" => "local_webhooks")));
$PAGE->navbar->add(new lang_string("externalservices", "webservice"), $managerservice);
$PAGE->navbar->add($titlepage);
echo $OUTPUT->header();
diff --git a/managerservice.php b/managerservice.php
index ccdb7bc..1377e91 100644
--- a/managerservice.php
+++ b/managerservice.php
@@ -26,7 +26,7 @@ require_once(__DIR__ . "/../../config.php");
require_once($CFG->libdir . "/tablelib.php");
require_once($CFG->libdir . "/adminlib.php");
-admin_externalpage_setup("managelocalplugins");
+admin_externalpage_setup("pluginsoverview");
$hideshowid = optional_param("hideshowid", 0, PARAM_INT);
$deleteid = optional_param("deleteid", 0, PARAM_INT);
@@ -70,7 +70,6 @@ $PAGE->set_title($titlepage);
$PAGE->set_heading($titlepage);
/* The page title */
-$PAGE->navbar->add(new lang_string("pluginname", "local_webhooks"), new moodle_url("/admin/settings.php", array("section" => "local_webhooks")));
$PAGE->navbar->add($titlepage, $baseurl);
echo $OUTPUT->header();