summaryrefslogtreecommitdiffstats
path: root/modules/main.inc.php
diff options
context:
space:
mode:
authorMarcus Proest2019-03-28 11:19:27 +0100
committerSimon Rettberg2019-03-28 11:19:27 +0100
commit7a811b07f634d3f2bb8c3478a020fc430cf70f7d (patch)
tree5efd7672dd4b78be6d6b05a3c2b6fc42368433b6 /modules/main.inc.php
parentindex.php: Add shibboleth debug output for admins (diff)
downloadbwlp-webadmin-7a811b07f634d3f2bb8c3478a020fc430cf70f7d.tar.gz
bwlp-webadmin-7a811b07f634d3f2bb8c3478a020fc430cf70f7d.tar.xz
bwlp-webadmin-7a811b07f634d3f2bb8c3478a020fc430cf70f7d.zip
Make URLs, brand names and list of admins configurable
Diffstat (limited to 'modules/main.inc.php')
-rw-r--r--modules/main.inc.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/main.inc.php b/modules/main.inc.php
index 8873b12..db62096 100644
--- a/modules/main.inc.php
+++ b/modules/main.inc.php
@@ -10,10 +10,10 @@ class Page_Main extends Page
protected function doRender()
{
- Render::addTemplate('main/_page');
+ Render::addTemplate('main/_page', array('suite' => CONFIG_SUITE));
if (!User::isLoggedIn()) {
// Guest
- Render::addTemplate('main/guest', array('prefix' => CONFIG_PREFIX));
+ Render::addTemplate('main/guest', array('prefix' => CONFIG_PREFIX, 'suite' => CONFIG_SUITE, 'idm' => CONFIG_IDM));
return;
}
// Logged in user --
@@ -55,7 +55,7 @@ class Page_Main extends Page
private function renderShibbolethRegistered()
{
- Render::addTemplate('main/logged-in');
+ Render::addTemplate('main/logged-in', array('suite' => CONFIG_SUITE));
}
private function renderShibbolethUnregistered()
@@ -78,6 +78,8 @@ class Page_Main extends Page
}
}
}
+ $data['suite'] = CONFIG_SUITE;
+ $data['idm'] = CONFIG_IDM;
Render::addTemplate('main/deploy', $data);
}