diff options
author | Jannik Schönartz | 2017-03-22 17:12:52 +0100 |
---|---|---|
committer | Jannik Schönartz | 2017-03-22 17:12:52 +0100 |
commit | eade9d466c9e3be2be4753ee4367356b356d2dc4 (patch) | |
tree | eb6c6205b2e916a2b4e17290a536b0fb1cba76bf /modules-available/locationinfo/page.inc.php | |
parent | Merge branch 'location-info-panel' of git.openslx.org:openslx-ng/slx-admin in... (diff) | |
download | slx-admin-eade9d466c9e3be2be4753ee4367356b356d2dc4.tar.gz slx-admin-eade9d466c9e3be2be4753ee4367356b356d2dc4.tar.xz slx-admin-eade9d466c9e3be2be4753ee4367356b356d2dc4.zip |
Backend credentials translation added. Bugfix: Checkboxes instead of bs switches were shown in the server settings
Diffstat (limited to 'modules-available/locationinfo/page.inc.php')
-rw-r--r-- | modules-available/locationinfo/page.inc.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/modules-available/locationinfo/page.inc.php b/modules-available/locationinfo/page.inc.php index 6490e722..df11f8a9 100644 --- a/modules-available/locationinfo/page.inc.php +++ b/modules-available/locationinfo/page.inc.php @@ -517,14 +517,16 @@ class Page_LocationInfo extends Page $counter = 0; foreach ($credentials as $key => $value) { $credential['uid'] = $counter; - $credential['name'] = $key; - $credential['type'] = $value[0]; - $credential['title'] = $value[1]; + $credential['name'] = Dictionary::translateFile($s, $key);; + $credential['type'] = $value; + $credential['title'] = Dictionary::translateFile($s, $key."_title"); if (Property::getPasswordFieldType() === 'text') { $credential['mask'] = false; } else { - $credential['mask'] = $value[2]; + if ($value == "password") { + $credential['mask'] = true; + } } if ($backend['typ'] == $dbresult['servertype']) { |