summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2018-04-25 17:04:57 +0200
committerSimon Rettberg2018-04-25 17:04:57 +0200
commit6a3d722a044d5ba9e7e4fbb634f15e15eb390b9c (patch)
treee3d05e1e354f83ce9af34a7b9000e18528aeb567
parent[locationinfo] Don't pad with ... but ' ' (diff)
downloadslx-admin-6a3d722a044d5ba9e7e4fbb634f15e15eb390b9c.tar.gz
slx-admin-6a3d722a044d5ba9e7e4fbb634f15e15eb390b9c.tar.xz
slx-admin-6a3d722a044d5ba9e7e4fbb634f15e15eb390b9c.zip
[locationinfo] Default language to slx-admin session language for new panel
-rw-r--r--modules-available/locationinfo/inc/locationinfo.inc.php4
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,