From 6e3ddb4d23d8740fa6b6ce8920717a3cd2bb090c Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 20 Oct 2020 11:01:44 +0200 Subject: [baseconfig_bwlp/locationinfo] Add SLX_TTY_SWITCH This will be used (to be implemented client side) to diallow tty switching from within the X session, as the exam mode currently already does. References #3793 --- modules-available/locationinfo/inc/locationinfohooks.inc.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules-available/locationinfo/inc/locationinfohooks.inc.php') diff --git a/modules-available/locationinfo/inc/locationinfohooks.inc.php b/modules-available/locationinfo/inc/locationinfohooks.inc.php index 15c4dc19..b0596c10 100644 --- a/modules-available/locationinfo/inc/locationinfohooks.inc.php +++ b/modules-available/locationinfo/inc/locationinfohooks.inc.php @@ -61,6 +61,9 @@ class LocationInfoHooks if (!empty($data['bookmarks'])) { ConfigHolder::add('SLX_BROWSER_BOOKMARKS', $data['bookmarks'], 1000); } + if ($data['allow-tty'] === 'yes' || $data['allow-tty'] === 'no') { + ConfigHolder::add('SLX_TTY_SWITCH', $data['allow-tty'], 1000); + } } else { // Not URL panel ConfigHolder::add('SLX_BROWSER_URL', 'http://' . $_SERVER['SERVER_ADDR'] . '/panel/' . $panelUuid); -- cgit v1.2.3-55-g7522