diff options
author | Simon Rettberg | 2018-04-25 17:04:57 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-04-25 17:04:57 +0200 |
commit | 6a3d722a044d5ba9e7e4fbb634f15e15eb390b9c (patch) | |
tree | e3d05e1e354f83ce9af34a7b9000e18528aeb567 /modules-available/locationinfo/inc | |
parent | [locationinfo] Don't pad with ... but ' ' (diff) | |
download | slx-admin-6a3d722a044d5ba9e7e4fbb634f15e15eb390b9c.tar.gz slx-admin-6a3d722a044d5ba9e7e4fbb634f15e15eb390b9c.tar.xz slx-admin-6a3d722a044d5ba9e7e4fbb634f15e15eb390b9c.zip |
[locationinfo] Default language to slx-admin session language for new panel
Diffstat (limited to 'modules-available/locationinfo/inc')
-rw-r--r-- | modules-available/locationinfo/inc/locationinfo.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules-available/locationinfo/inc/locationinfo.inc.php b/modules-available/locationinfo/inc/locationinfo.inc.php index 38e271fe..c51be666 100644 --- a/modules-available/locationinfo/inc/locationinfo.inc.php +++ b/modules-available/locationinfo/inc/locationinfo.inc.php @@ -75,7 +75,7 @@ class LocationInfo { if ($type === 'DEFAULT') { return array( - 'language' => 'en', + 'language' => defined('LANG') ? LANG : 'en', 'mode' => 1, 'vertical' => false, 'eco' => false, @@ -92,7 +92,7 @@ class LocationInfo } if ($type === 'SUMMARY') { return array( - 'language' => 'en', + 'language' => defined('LANG') ? LANG : 'en', 'calupdate' => 30, 'roomupdate' => 15, 'configupdate' => 180, |