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/page.inc.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules-available/locationinfo/page.inc.php') diff --git a/modules-available/locationinfo/page.inc.php b/modules-available/locationinfo/page.inc.php index 8032642d..845398f0 100644 --- a/modules-available/locationinfo/page.inc.php +++ b/modules-available/locationinfo/page.inc.php @@ -356,6 +356,7 @@ class Page_LocationInfo extends Page 'browser' => Request::post('browser', 'slx-browser', 'string'), 'interactive' => Request::post('interactive', '0', 'bool'), 'bookmarks' => $bookmarkString ? $bookmarkString : '', + 'allow-tty' => Request::post('allow-tty', '', 'string'), ); return array('config' => $conf, 'locationids' => []); } @@ -982,6 +983,7 @@ class Page_LocationInfo extends Page 'browser' => $config['browser'], 'interactive_checked' => $config['interactive'] ? 'checked' : '', 'bookmarks' => $bookmarksArray, + 'allow-tty_' . $config['allow-tty'] . '_checked' => 'checked', )); } else { Render::addTemplate('page-config-panel-summary', array( -- cgit v1.2.3-55-g7522