summaryrefslogtreecommitdiffstats
path: root/modules-available/runmode
diff options
context:
space:
mode:
authorSimon Rettberg2020-09-17 16:32:41 +0200
committerSimon Rettberg2020-09-17 16:32:41 +0200
commit97aefcf975f23dc7cd453622da27c76a788e9bd2 (patch)
treee0aedb3bd033a3dc5288a5d4ccd8b90c727fd51b /modules-available/runmode
parent[locations] install: Make openingtime migration a bit more robust (diff)
downloadslx-admin-97aefcf975f23dc7cd453622da27c76a788e9bd2.tar.gz
slx-admin-97aefcf975f23dc7cd453622da27c76a788e9bd2.tar.xz
slx-admin-97aefcf975f23dc7cd453622da27c76a788e9bd2.zip
[exams/runmode/remoteaccess] Tweak baseconfig hook (runmode/format)
Diffstat (limited to 'modules-available/runmode')
-rw-r--r--modules-available/runmode/baseconfig/getconfig.inc.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/modules-available/runmode/baseconfig/getconfig.inc.php b/modules-available/runmode/baseconfig/getconfig.inc.php
index 8ea2b2a6..9c36cc75 100644
--- a/modules-available/runmode/baseconfig/getconfig.inc.php
+++ b/modules-available/runmode/baseconfig/getconfig.inc.php
@@ -1,6 +1,6 @@
<?php
-$foofoo = function($machineUuid) {
+(function($machineUuid) {
$res = Database::queryFirst('SELECT module, modeid, modedata FROM runmode WHERE machineuuid = :uuid',
array('uuid' => $machineUuid));
if ($res === false)
@@ -17,6 +17,4 @@ $foofoo = function($machineUuid) {
ConfigHolder::add('SLX_SYSTEMD_TARGET', $config->systemdDefaultTarget, 10000);
}
ConfigHolder::add('SLX_RUNMODE_MODULE', $res['module']);
-};
-
-$foofoo($uuid); \ No newline at end of file
+})($uuid);