aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-11-18 05:37:58 +0300
committerValentin Popov <info@valentineus.link>2017-11-18 05:37:58 +0300
commit463aeaf0433bf19b83519747c86b0e0e945d43eb (patch)
tree906811221c1f7550417e4bd1681543e988a7a0e4
parent97140dccf76f878991853d827449ca608eb91864 (diff)
downloadlocal_webhooks-463aeaf0433bf19b83519747c86b0e0e945d43eb.tar.xz
local_webhooks-463aeaf0433bf19b83519747c86b0e0e945d43eb.zip
Correcting the page template
-rw-r--r--editservice.php4
-rw-r--r--managerservice.php4
-rw-r--r--restorebackup.php4
3 files changed, 3 insertions, 9 deletions
diff --git a/editservice.php b/editservice.php
index c97fa22..8b065ff 100644
--- a/editservice.php
+++ b/editservice.php
@@ -26,8 +26,7 @@ require_once(__DIR__ . "/../../config.php");
require_once(__DIR__ . "/classes/editform.php");
require_once($CFG->libdir . "/adminlib.php");
-admin_externalpage_setup("pluginsoverview");
-require_login();
+admin_externalpage_setup("local_webhooks");
/* Optional parameters */
$serviceid = optional_param("serviceid", 0, PARAM_INT);
@@ -85,7 +84,6 @@ $PAGE->set_heading($titlepage);
$PAGE->set_title($titlepage);
/* The page title */
-$PAGE->navbar->add(new lang_string("pluginname", "local_webhooks"), $managerservice);
$PAGE->navbar->add($titlepage);
echo $OUTPUT->header();
diff --git a/managerservice.php b/managerservice.php
index 066dc99..f75e54e 100644
--- a/managerservice.php
+++ b/managerservice.php
@@ -26,8 +26,7 @@ require_once(__DIR__ . "/../../config.php");
require_once($CFG->libdir . "/tablelib.php");
require_once($CFG->libdir . "/adminlib.php");
-admin_externalpage_setup("pluginsoverview");
-require_login();
+admin_externalpage_setup("local_webhooks");
/* Optional parameters */
$backupservices = optional_param("getbackup", 0, PARAM_BOOL);
@@ -81,7 +80,6 @@ $PAGE->set_title($titlepage);
$PAGE->set_heading($titlepage);
/* The page title */
-$PAGE->navbar->add($titlepage, $baseurl);
echo $OUTPUT->header();
/* Table declaration */
diff --git a/restorebackup.php b/restorebackup.php
index 69200bc..be466ef 100644
--- a/restorebackup.php
+++ b/restorebackup.php
@@ -26,8 +26,7 @@ require_once(__DIR__ . "/../../config.php");
require_once(__DIR__ . "/classes/editform.php");
require_once($CFG->libdir . "/adminlib.php");
-admin_externalpage_setup("pluginsoverview");
-require_login();
+admin_externalpage_setup("local_webhooks");
/* Link generation */
$managerservice = new moodle_url("/local/webhooks/managerservice.php");
@@ -67,7 +66,6 @@ $PAGE->set_heading($titlepage);
$PAGE->set_title($titlepage);
/* The page title */
-$PAGE->navbar->add(new lang_string("pluginname", "local_webhooks"), $managerservice);
$PAGE->navbar->add($titlepage);
echo $OUTPUT->header();