Skip to content

Commit

Permalink
Correcting the page template
Browse files Browse the repository at this point in the history
  • Loading branch information
valentineus committed Nov 18, 2017
1 parent 97140dc commit 463aeaf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions editservice.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
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);
Expand Down Expand Up @@ -85,7 +84,6 @@
$PAGE->set_title($titlepage);

/* The page title */
$PAGE->navbar->add(new lang_string("pluginname", "local_webhooks"), $managerservice);
$PAGE->navbar->add($titlepage);
echo $OUTPUT->header();

Expand Down
4 changes: 1 addition & 3 deletions managerservice.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
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);
Expand Down Expand Up @@ -81,7 +80,6 @@
$PAGE->set_heading($titlepage);

/* The page title */
$PAGE->navbar->add($titlepage, $baseurl);
echo $OUTPUT->header();

/* Table declaration */
Expand Down
4 changes: 1 addition & 3 deletions restorebackup.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
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");
Expand Down Expand Up @@ -67,7 +66,6 @@
$PAGE->set_title($titlepage);

/* The page title */
$PAGE->navbar->add(new lang_string("pluginname", "local_webhooks"), $managerservice);
$PAGE->navbar->add($titlepage);
echo $OUTPUT->header();

Expand Down

0 comments on commit 463aeaf

Please sign in to comment.